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

响应式网站制作教程wordpress一键倒入微信

响应式网站制作教程,wordpress一键倒入微信,建好的网站在哪里,购物网站哪个质量好一、对整个系统编写测试用例 功能测试 性能测试 兼容性测试 易用性测试 安全测试 二、接口测试 针对接口的功能测试#xff0c;也就是检验接口是否按照接口文档输入输出 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;BeforeClassOrder(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.TestOrder(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[classuserList]/p[classoutLogin])).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;}/*** 登录-菜品管理-添加菜品*/TestOrder(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[classel-scrollbar__view el-select-dropdown__list]));driver.findElement(By.xpath(//ul[classel-scrollbar__view el-select-dropdown__list]/li/span)).click();driver.findElement(By.xpath(//span[classaddBut])).click();driver.findElement(By.xpath(//input[placeholder请选择口味])).click();driver.findElement(By.xpath(//input[namefile])).sendKeys(C:\\Users\\FK\\Desktop\\HTMLCSSJavaScript\\fengjing1.jpg);driver.findElement(By.xpath(//textarea)).sendKeys(haochi);driver.findElement(By.xpath(//span[contains(text(), 保存)])).click();}} 生成对应类的xml文件指定每个test测试类的执行顺序顺序完成操作
http://www.dnsts.com.cn/news/34559.html

相关文章:

  • 网站优化排名易下拉技术WordPress源码路由
  • 网站加在线qq中信建设有限责任公司哈萨克斯坦分公司
  • 北京网站建设 性价比wordpress po
  • 搜索引擎网站的搜素结果有何区别黄江镇做网站
  • 微网站与移动开发是做什么的网站推广的几种方法
  • 智能免费建站企业形象策划论文
  • 常州微信网站建设方案昆山制造网站的地方
  • 如何创建网站小程序网站建设英文怎么说
  • 重庆市工程建设信息网官方网站做兼职的网站都有哪些工作内容
  • 营销型网站建设xywlcnwordpress删除顶部设置菜单
  • 网站建设合同违约新密做网站推广
  • 广州网站建设培训学校wordpress菜单字体大小
  • 网站建设运营维护合同珲春市建设局网站是多少
  • 广西建设职业技术学院教育网站常用的系统开发方法有哪些
  • 视频制作培训机构西安企业网站seo
  • 吉林做网站优化智慧团建网页手机版官网
  • 各大网站的名字荆州哪有做网站的公司
  • 苏州高级网站建设项目融资平台
  • 免费建网站 建站之星网站建设百度搜索到左边的图
  • 自己做的网站出现iis7四川工程造价信息网
  • 个人网站设计论文怎么写古交网站建设推广
  • 南宁网站建设方案详细方案网络规划设计师教程第二版
  • 在凡科上做的网站无法加载出来红色博客网站源码
  • 鞍山云网站建设银行网站驱动
  • pr模板免费下载网站长沙设计网站多少钱
  • 做网站有什么软件wordpress插件一键安装
  • 做视频网站要多大的服务器四川电子商务网站
  • 做网站有底薪吗seo网站架构
  • 做app护肤网站公司装修设计公司
  • fm网站开发网站访问速度跟服务器cpu和内存和带宽哪个重要