当前位置: 首页 > news >正文

做陌陌网站什么做2020站群seo系统

做陌陌网站什么做,2020站群seo系统,武汉刚刚突然宣布2022疫情,游戏加速器一、对整个系统编写测试用例 功能测试 性能测试 兼容性测试 易用性测试 安全测试 二、接口测试 针对接口的功能测试,也就是检验接口是否按照接口文档输入输出 2.1 使用Postman发送HTTP请求 2.2 使用Java TestNG 编写自动化测试用例 登录界面功能 package com.sky.…

一、对整个系统编写测试用例

        功能测试

        

       

        性能测试

                兼容性测试

                易用性测试

 

        安全测试

二、接口测试

        针对接口的功能测试,也就是检验接口是否按照接口文档输入输出

        2.1 使用Postman发送HTTP请求

        

        2.2 使用Java + TestNG 编写自动化测试用例

                登录界面功能

package com.sky.test;import org.junit.jupiter.api.Order;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.edge.EdgeOptions;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;import java.util.concurrent.TimeUnit;
public class LoginAndOut {public  static WebDriver driver;@BeforeClass@Order(1)public void openBrowser(){System.setProperty("webdriver.edge.driver" , "D:/EdgeDriver/msedgedriver.exe");//打开浏览器EdgeOptions options = new EdgeOptions();options.addArguments("--remote-allow-origins=*");driver = new EdgeDriver(options);System.out.println(driver);driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);}/*** 登录,登出* @throws InterruptedException*/@org.testng.annotations.Test@Order(2)public void Login() throws InterruptedException {
//        driver = new E;driver.get("http://www.localhost:81");driver.manage().window().maximize();driver.findElement(By.xpath("//input[@placeholder='账号']")).clear();driver.findElement(By.xpath("//input[@placeholder='账号']")).sendKeys("admin");Thread.sleep(1000);driver.findElement(By.xpath("//input[@placeholder='密码']")).clear();driver.findElement(By.xpath("//input[@placeholder='密码']")).sendKeys("123456");Thread.sleep(1000);driver.findElement(By.xpath("//span[text()='登录']")).click();Thread.sleep(1000);driver.findElement(By.xpath("/html/body/div[2]/div/div[2]")).click();driver.findElement(By.xpath("//span[contains(text(),'管理员')]")).click();Thread.sleep(2000);driver.findElement(By.xpath("//div[@class='userList']/p[@class='outLogin']")).click();Thread.sleep(1000);driver.findElement(By.xpath("//span[text()='登录']")).click();}}

        添加菜品功能

package com.sky.test;
import net.sf.jsqlparser.statement.select.KSQLWindow;
import org.junit.jupiter.api.Order;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;import org.openqa.selenium.edge.EdgeOptions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;import java.util.concurrent.TimeUnit;public class homepage {public WebDriver driver;@BeforeClasspublic void openBrowser() {driver = LoginAndOut.driver;}/*** 登录-菜品管理-添加菜品*/@Test@Order(3)public void saveDish() throws InterruptedException {driver.findElement(By.xpath("//div/a[@href='#/dish']")).click();driver.findElement(By.xpath("//*[@id=\"app\"]/div/div[2]/section/div/div/div[1]/div[4]/button/span")).click();driver.findElement(By.xpath("//input[@placeholder='请填写菜品名称']")).clear();Thread.sleep(1000);driver.findElement(By.xpath("//input[@placeholder='请填写菜品名称']")).sendKeys("selenium");driver.findElement(By.xpath("//input[@placeholder='请设置菜品价格']")).clear();Thread.sleep(1000);driver.findElement(By.xpath("//input[@placeholder='请设置菜品价格']")).sendKeys("888");driver.findElement(By.xpath("//input[@placeholder='请选择菜品分类']")).click();Thread.sleep(1000);WebElement element = driver.findElement(By.xpath("//ul[@class='el-scrollbar__view el-select-dropdown__list']"));driver.findElement(By.xpath("//ul[@class='el-scrollbar__view el-select-dropdown__list']/li/span")).click();driver.findElement(By.xpath("//span[@class='addBut']")).click();driver.findElement(By.xpath("//input[@placeholder='请选择口味']")).click();driver.findElement(By.xpath("//input[@name='file']")).sendKeys("C:\\Users\\FK\\Desktop\\HTML+CSS+JavaScript\\fengjing1.jpg");driver.findElement(By.xpath("//textarea")).sendKeys("haochi");driver.findElement(By.xpath("//span[contains(text(), '保存')]")).click();}}

        生成对应类的xml文件,指定每个test(测试类)的执行顺序,顺序完成操作

http://www.tj-hxxt.cn/news/40943.html

相关文章:

  • 做网站时兼容分辨率游戏推广代理
  • 移动应用开发网站百度seo推广怎么收费
  • 襄阳营销型网站建设百中搜优化软件
  • 做网站对客户有什么帮助怎么做seo信息优化
  • 做网站主要学什么软件在哪里找专业推广团队
  • 唐山展望网站建设seo应该如何做
  • 湘潭县委网站百度公司全称
  • 宜昌网站开发打造龙头建设示范
  • 展示型网站建设的标准海南网站设计
  • 秦皇岛网站建设公司廊坊快速排名优化
  • wordpress登陆美化南京 seo 价格
  • 英文杭州网站建设苏州seo排名优化课程
  • 卖代码建设网站北京百度快速优化排名
  • 商城网站支付系统怎么做代刷网站推广链接0元价格
  • 郑州做网站优化外包软件编程培训学校排名
  • 网站建设方案意见免费seo快速排名工具
  • 网站建设服务器篇百度云电脑版网站入口
  • 文秘写作网站搜索引擎网站排名
  • 建个网站多少钱aso关键词排名优化是什么
  • 512 做网站外包
  • 温州建站模板搭建百度公司地址在哪里
  • pc网站转换成wap百度竞价排名多少钱
  • erlang做网站优势百度云网站入口
  • 网站建设客户沟通模块2022年最新新闻播报稿件
  • 网做网站数据分析网站
  • dw企业网站设计网站制作平台
  • 提供网站建设的理由网络营销服务公司
  • 广西自治区住房和城乡建设厅网站新泰网站seo
  • 2016年做水果行业专业网站企业网络营销案例
  • 加大网站集约化建设管理长春网站制作方案定制