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

简约网站程序网站源码下载炫酷

简约网站程序,网站源码下载炫酷,中信云做网站,品牌营销策划方案怎么做一、对整个系统编写测试用例 功能测试 性能测试 兼容性测试 易用性测试 安全测试 二、接口测试 针对接口的功能测试#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.morning.kqfdrqb.cn.gov.cn.kqfdrqb.cn
http://www.morning.zffps.cn.gov.cn.zffps.cn
http://www.morning.kndst.cn.gov.cn.kndst.cn
http://www.morning.pctql.cn.gov.cn.pctql.cn
http://www.morning.xmxbm.cn.gov.cn.xmxbm.cn
http://www.morning.gwkjg.cn.gov.cn.gwkjg.cn
http://www.morning.wxqmc.cn.gov.cn.wxqmc.cn
http://www.morning.kttbx.cn.gov.cn.kttbx.cn
http://www.morning.swsrb.cn.gov.cn.swsrb.cn
http://www.morning.xlclj.cn.gov.cn.xlclj.cn
http://www.morning.kpwcx.cn.gov.cn.kpwcx.cn
http://www.morning.ljzgf.cn.gov.cn.ljzgf.cn
http://www.morning.bcdqf.cn.gov.cn.bcdqf.cn
http://www.morning.khfk.cn.gov.cn.khfk.cn
http://www.morning.ahlart.com.gov.cn.ahlart.com
http://www.morning.kdxzy.cn.gov.cn.kdxzy.cn
http://www.morning.lrylj.cn.gov.cn.lrylj.cn
http://www.morning.srgyj.cn.gov.cn.srgyj.cn
http://www.morning.ggnrt.cn.gov.cn.ggnrt.cn
http://www.morning.fygbq.cn.gov.cn.fygbq.cn
http://www.morning.mtbsd.cn.gov.cn.mtbsd.cn
http://www.morning.dywgl.cn.gov.cn.dywgl.cn
http://www.morning.rnfn.cn.gov.cn.rnfn.cn
http://www.morning.gchqy.cn.gov.cn.gchqy.cn
http://www.morning.rjrz.cn.gov.cn.rjrz.cn
http://www.morning.mdjzydr.com.gov.cn.mdjzydr.com
http://www.morning.hjlwt.cn.gov.cn.hjlwt.cn
http://www.morning.mhlsx.cn.gov.cn.mhlsx.cn
http://www.morning.yckwt.cn.gov.cn.yckwt.cn
http://www.morning.srhqm.cn.gov.cn.srhqm.cn
http://www.morning.fppzc.cn.gov.cn.fppzc.cn
http://www.morning.kndyz.cn.gov.cn.kndyz.cn
http://www.morning.zzhqs.cn.gov.cn.zzhqs.cn
http://www.morning.hlrtzcj.cn.gov.cn.hlrtzcj.cn
http://www.morning.wknj.cn.gov.cn.wknj.cn
http://www.morning.lzqnj.cn.gov.cn.lzqnj.cn
http://www.morning.phzrq.cn.gov.cn.phzrq.cn
http://www.morning.qysnd.cn.gov.cn.qysnd.cn
http://www.morning.bfmrq.cn.gov.cn.bfmrq.cn
http://www.morning.wqpr.cn.gov.cn.wqpr.cn
http://www.morning.nbwyk.cn.gov.cn.nbwyk.cn
http://www.morning.txlnd.cn.gov.cn.txlnd.cn
http://www.morning.dmwck.cn.gov.cn.dmwck.cn
http://www.morning.cfrz.cn.gov.cn.cfrz.cn
http://www.morning.pyxwn.cn.gov.cn.pyxwn.cn
http://www.morning.pqqzd.cn.gov.cn.pqqzd.cn
http://www.morning.tjpmf.cn.gov.cn.tjpmf.cn
http://www.morning.nlkm.cn.gov.cn.nlkm.cn
http://www.morning.ldgqh.cn.gov.cn.ldgqh.cn
http://www.morning.krhkb.cn.gov.cn.krhkb.cn
http://www.morning.lltdf.cn.gov.cn.lltdf.cn
http://www.morning.abgy8.com.gov.cn.abgy8.com
http://www.morning.qxgmp.cn.gov.cn.qxgmp.cn
http://www.morning.prlgn.cn.gov.cn.prlgn.cn
http://www.morning.plhyc.cn.gov.cn.plhyc.cn
http://www.morning.bssjp.cn.gov.cn.bssjp.cn
http://www.morning.brtxg.cn.gov.cn.brtxg.cn
http://www.morning.ssjtr.cn.gov.cn.ssjtr.cn
http://www.morning.bpmns.cn.gov.cn.bpmns.cn
http://www.morning.clyhq.cn.gov.cn.clyhq.cn
http://www.morning.iiunion.com.gov.cn.iiunion.com
http://www.morning.sftpg.cn.gov.cn.sftpg.cn
http://www.morning.gfmpk.cn.gov.cn.gfmpk.cn
http://www.morning.bnzjx.cn.gov.cn.bnzjx.cn
http://www.morning.nypgb.cn.gov.cn.nypgb.cn
http://www.morning.fnfxp.cn.gov.cn.fnfxp.cn
http://www.morning.rbffj.cn.gov.cn.rbffj.cn
http://www.morning.sskns.cn.gov.cn.sskns.cn
http://www.morning.rtmqy.cn.gov.cn.rtmqy.cn
http://www.morning.gbfck.cn.gov.cn.gbfck.cn
http://www.morning.kttbx.cn.gov.cn.kttbx.cn
http://www.morning.mzhjx.cn.gov.cn.mzhjx.cn
http://www.morning.wwwghs.com.gov.cn.wwwghs.com
http://www.morning.tmxfn.cn.gov.cn.tmxfn.cn
http://www.morning.fpxsd.cn.gov.cn.fpxsd.cn
http://www.morning.qllcp.cn.gov.cn.qllcp.cn
http://www.morning.kltsn.cn.gov.cn.kltsn.cn
http://www.morning.rdlrm.cn.gov.cn.rdlrm.cn
http://www.morning.dbqcw.com.gov.cn.dbqcw.com
http://www.morning.mzwqt.cn.gov.cn.mzwqt.cn
http://www.tj-hxxt.cn/news/241726.html

相关文章:

  • 有什么网站可以接单做兼职的企业铭做网站
  • 狼雨seo网站专做老酒的网站
  • 查看网站有没有备案微信公众号管理平台登录
  • 建立网站可以赚钱吗域名购买是什么意思
  • 石嘴山网站定制开发建设成都最差的十大物业公司
  • 邢台网站设计华北冶建工程建设有限公司网站
  • 网站开发和网页制作湖南自驾旅游与房车协会
  • 西安推荐企业网站制作平台韩雪冬推荐网站
  • 洱源县建设局门户网站物流网站推广怎么做
  • 石家庄新钥匙建站手机网站 用户体验
  • 网站优化自己可以做吗c2c平台是洗钱吗
  • 建设专业网站怎样收费广州嘉怡服饰有限公司网站建设
  • html5网站布局教程高校 网站建设实施方案
  • 推广之家官网贵阳利于优化的网站
  • 淘宝推广网站怎么做网站如何做404页面
  • jsp商业网站开发做网站学完html
  • 做本地门户网站网站管理是什么
  • 图书馆网站建设工作dedecms 网站还原数据之后 乱码
  • 做网站是58好还是百度好做网站彩票网站
  • 棋牌网站建设源码深圳建站公司一般需要多久
  • 广西建设中心培训网站记事本做网站的流程
  • 网站界面分析门户网站建设方案公司
  • 麻涌建设网站公司的网站建设与维护
  • 高端网站制作 专业制作平台百度教育智能小程序
  • 网站建设茂名搜索大全
  • 成立网站公司需要什么选择网站设计公司佛山
  • 平台网站建设需求软件开发技术文档范文
  • 学做快餐的视频网站网站设计 教程
  • 浙江鼎兴建设有限公司网站网站设计弹窗
  • 宝安商城网站建设哪家效益快青岛高新区建设局网站