网站ftp地址查询ftp wordpress 搬站

张小明 2026/1/10 8:06:39
网站ftp地址查询,ftp wordpress 搬站,谁能帮我做网站,网站建设初步规划目录 一、测试背景 二、测试环境 三、功能测试 3.1设计测试用例 3.2基本功能测试 四、自动化测试 五、性能测试 一、测试背景 随着互联网的快速发展#xff0c;即时通讯工具已成为人们日常生活和工作中不可或缺的一部分。网页聊天室作为一种轻量级的即时通讯平台#…目录一、测试背景二、测试环境三、功能测试3.1设计测试用例3.2基本功能测试四、自动化测试五、性能测试一、测试背景随着互联网的快速发展即时通讯工具已成为人们日常生活和工作中不可或缺的一部分。网页聊天室作为一种轻量级的即时通讯平台因其无需安装额外软件、跨平台兼容性强、使用便捷等特点受到了广大用户的青睐。本测试报告旨在对网页聊天室进行全面的测试以确保其稳定性、安全性、易用性等方面均能满足用户需求。二、测试环境硬件环境设备名称 LAPTOP-D9IQ8DCE处理器 13th Gen Intel(R) Core(TM) i7-13700H (2.40 GHz)机带 RAM 16.0 GB (15.7 GB 可用)系统类型 64 位操作系统, 基于 x64 的处理器Windows规格版本 Windows 11 家庭中文版操作系统版本 26200.7171浏览器Chrome版本142.0.7444.176正式版本 64 位三、功能测试3.1设计测试用例3.2基本功能测试登录界面聊天界面注册界面四、自动化测试4.1在pom.xml中添加相关的依赖?xml version1.0 encodingUTF-8? project xmlnshttp://maven.apache.org/POM/4.0.0 xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd modelVersion4.0.0/modelVersion groupIdcom.example/groupId artifactIdchatAutoTest/artifactId version1.0-SNAPSHOT/version dependencies dependency groupIdio.github.bonigarcia/groupId artifactIdwebdrivermanager/artifactId version5.8.0/version scopetest/scope /dependency dependency groupIdorg.seleniumhq.selenium/groupId artifactIdselenium-java/artifactId version4.0.0/version /dependency /dependencies properties maven.compiler.source17/maven.compiler.source maven.compiler.target17/maven.compiler.target project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties /project4.2编写自动化脚本1创建驱动类—common/Utils.javapackage common; import io.github.bonigarcia.wdm.WebDriverManager; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.time.Duration; public class Utils { public static WebDriver driver; public static WebDriver createDriver() { if (driver null) { WebDriverManager.chromedriver().setup(); //浏览器配置 ChromeOptions options new ChromeOptions(); //允许访问所有链接 options.addArguments(--remote-allow-origins*); driver new ChromeDriver(options); //隐式等待 driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(3)); } return driver; } public Utils(String url) { driver createDriver(); driver.get(url); } //屏幕截图 public void getScreenshotAs(String str) throws IOException { SimpleDateFormat sim1 new SimpleDateFormat(yyyy-MM-dd); SimpleDateFormat sim2 new SimpleDateFormat(HHmmssSS); String date sim1.format(System.currentTimeMillis()); String time sim2.format(System.currentTimeMillis()); //./src/test/image/ // 2025-2-25 // /test01-201509.png String fileName ./src/test/image/ date / str - time .png; File file ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(file,new File(fileName)); } }2 登录页面测试—tests/LoginPage.javapackage tests; import common.Utils; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import java.io.IOException; public class LoginPage extends Utils { public static String url http://127.0.0.1:8080/login.html; public LoginPage() { super(url); } public void loginPageRight() throws IOException { //通过检查页面元素确定页面是否完成 String text driver.findElement(By.cssSelector(body div.login-container div h3)).getText(); //断言 assert text.equals(登录); getScreenshotAs(getClass().getName()); } public void loginPageFail() throws InterruptedException { //不输入密码 driver.findElement(By.cssSelector(#username)).sendKeys(张三); //点击登录按钮 driver.findElement(By.cssSelector(#submit)).click(); Thread.sleep(3000); //处理警告弹窗登陆失败页面不跳转 Alert alert driver.switchTo().alert(); alert.accept(); //刷新页面 driver.navigate().refresh(); //不输入用户名 driver.findElement(By.cssSelector(#password)).sendKeys(456); //点击登录按钮 driver.findElement(By.cssSelector(#submit)).click(); Thread.sleep(3000); //处理警告弹窗登陆失败页面不跳转 Alert alert1 driver.switchTo().alert(); alert1.accept(); //刷新页面 driver.navigate().refresh(); } public void loginPageSuc() throws InterruptedException, IOException { //输入正确的用户名和密码 driver.findElement(By.cssSelector(#username)).sendKeys(zhangsan); driver.findElement(By.cssSelector(#password)).sendKeys(123); //点击登录按钮 driver.findElement(By.cssSelector(#submit)).click(); //处理警告弹窗登陆成功页面跳转 Thread.sleep(3000); Alert alert driver.switchTo().alert(); alert.accept(); Thread.sleep(5000); String text driver.findElement(By.cssSelector(body div.client-container div div.right div.ctrl button)).getText(); assert text.equals(发送); getScreenshotAs(getClass().getName()); } }3聊天主页测试—tests/ClientPage.javapackage tests; import common.Utils; import org.openqa.selenium.By; import java.io.IOException; public class ClientPage extends Utils { public static String url http://127.0.0.1:8080/client.html; public ClientPage() { super(url); } public void clientPageRight() throws IOException, InterruptedException { driver.findElement(By.cssSelector(#session-list li:nth-child(1) h3)); driver.findElement(By.cssSelector(body div.client-container div div.right textarea)); driver.findElement(By.cssSelector(body div.client-container div div.right div.ctrl button)); //通讯录 driver.findElement(By.cssSelector(body div.client-container div div.left div.tab div.tab-friend)); getScreenshotAs(getClass().getName()); } }4自动化结果测试driver.switchTo().alert().accept(); sleep(3000); //点击 zhangsan 会话 driver.findElement(By.cssSelector(#session-list li h3)).click(); //获取好友名 String name driver.findElement(By.cssSelector(body div.client-container div div.right div.title)).getText(); //获取最后一条消息 String text driver.findElement(By.cssSelector(body div.client-container div div.right div.message-show div:nth-child(3) div p)).getText(); //判断好友是否一致 Assertions.assertEquals(zhangsan,name); //判断消息是否一致 Assertions.assertEquals(测试结束,text); } }五、性能测试5.1使用jmeter进行性能测试1.1 添加线程组1.2 添加多个HTTP 请求1.3 添加监听器查看结果树、聚合报告1.4 添加配置元件HTTP请求默认值、HTTP Cookie管理器、CSV数据⽂件设置1.5 添加梯度压测线程组5.2生成性能测试报告
版权声明:本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

网站验证码怎么做的福州网络科技有限公司

终极指南:快速掌握UABEA资产工具的完整配置方案 【免费下载链接】UABEA UABEA: 这是一个用于新版本Unity的C# Asset Bundle Extractor(资源包提取器),用于提取游戏中的资源。 项目地址: https://gitcode.com/gh_mirrors/ua/UABE…

张小明 2026/1/10 3:55:01 网站建设

安装建设手机银行移动门户网站企业查询

5分钟快速上手:Firmware Extractor跨平台Android固件提取完全指南 【免费下载链接】Firmware_extractor 项目地址: https://gitcode.com/gh_mirrors/fi/Firmware_extractor 想要轻松提取Android设备固件镜像却不知道从何入手?Firmware Extractor…

张小明 2026/1/7 22:06:30 网站建设

网站设计是怎么设计的找客户在公司做网站

3倍效能跃升:智能扫码工具如何重构你的游戏登录体验? 【免费下载链接】MHY_Scanner 崩坏3,原神,星穹铁道的Windows平台的扫码和抢码登录器,支持从直播流抢码。 项目地址: https://gitcode.com/gh_mirrors/mh/MHY_Sca…

张小明 2026/1/7 22:06:32 网站建设

vx小程序怎么开发南宁网站建设seo

解锁船舶设计新维度:开源船舶设计软件的实战应用指南 【免费下载链接】freeship-plus-in-lazarus FreeShip Plus in Lazarus 项目地址: https://gitcode.com/gh_mirrors/fr/freeship-plus-in-lazarus 你是否曾因高昂的软件费用而放弃船舶设计的梦想&#xff…

张小明 2026/1/7 22:06:30 网站建设

php网站开发建设阳江网站关键字优化

英伟达(NVIDIA)刚刚公布了2026年度研究生奖学金(Graduate Fellowship)的获奖名单。 作为全球计算机领域博士生含金量最高的奖项之一,每位获奖者将获得高达6万美元的资助。 然而,这份名单最引人注目的不是金…

张小明 2026/1/7 22:06:31 网站建设

快速网站建设价格怎么样做公司网站

【C2000系列DSP的Bootloader详解】如何利用脚本自动生成Hex/Bin/S19 专为TI C2000系列C28x内核芯片设计,实现bootloader.out和user_app.out文件的Hex/Bin/S19转换,以及转换后Hex/Bin/S19文件的合规合并,生成可直接用于Uniflash烧录的文件。 OutconvertHex.py, 可以生成he…

张小明 2026/1/7 22:06:32 网站建设