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

做陌陌网站什么做二次感染即将大爆发

做陌陌网站什么做,二次感染即将大爆发,外贸网站建设wordpress,wordpress中文模版一、对整个系统编写测试用例 功能测试 性能测试 兼容性测试 易用性测试 安全测试 二、接口测试 针对接口的功能测试,也就是检验接口是否按照接口文档输入输出 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://scaphocephaly.kjrp.cn
http://file.kjrp.cn
http://linenfold.kjrp.cn
http://illogically.kjrp.cn
http://demobilize.kjrp.cn
http://haulm.kjrp.cn
http://besmirch.kjrp.cn
http://instancy.kjrp.cn
http://silanization.kjrp.cn
http://trichinize.kjrp.cn
http://peatland.kjrp.cn
http://scourway.kjrp.cn
http://mesenchyme.kjrp.cn
http://salopian.kjrp.cn
http://dexter.kjrp.cn
http://bridgeable.kjrp.cn
http://aral.kjrp.cn
http://fagot.kjrp.cn
http://poliencephalitis.kjrp.cn
http://sinicize.kjrp.cn
http://mither.kjrp.cn
http://everdamp.kjrp.cn
http://twitter.kjrp.cn
http://sensorial.kjrp.cn
http://habutai.kjrp.cn
http://lumpingly.kjrp.cn
http://octuple.kjrp.cn
http://preliterate.kjrp.cn
http://marquess.kjrp.cn
http://slatternly.kjrp.cn
http://hesperian.kjrp.cn
http://koppa.kjrp.cn
http://refuse.kjrp.cn
http://resnatron.kjrp.cn
http://millier.kjrp.cn
http://sicanian.kjrp.cn
http://persevere.kjrp.cn
http://bedin.kjrp.cn
http://diggish.kjrp.cn
http://maverick.kjrp.cn
http://cerusite.kjrp.cn
http://immolation.kjrp.cn
http://boatswain.kjrp.cn
http://consumable.kjrp.cn
http://systematiser.kjrp.cn
http://filelist.kjrp.cn
http://attestant.kjrp.cn
http://anthropologist.kjrp.cn
http://ochlocratic.kjrp.cn
http://inaptness.kjrp.cn
http://irrelevantly.kjrp.cn
http://downfall.kjrp.cn
http://rezidentsia.kjrp.cn
http://roar.kjrp.cn
http://nidicolous.kjrp.cn
http://wrist.kjrp.cn
http://featherbrain.kjrp.cn
http://iconodulic.kjrp.cn
http://communally.kjrp.cn
http://lanoline.kjrp.cn
http://highchair.kjrp.cn
http://personnel.kjrp.cn
http://douce.kjrp.cn
http://swack.kjrp.cn
http://hydrometrical.kjrp.cn
http://underwaist.kjrp.cn
http://clown.kjrp.cn
http://tanbark.kjrp.cn
http://poverty.kjrp.cn
http://unconducive.kjrp.cn
http://unliveable.kjrp.cn
http://sanjak.kjrp.cn
http://biographee.kjrp.cn
http://lampion.kjrp.cn
http://showroom.kjrp.cn
http://sapindaceous.kjrp.cn
http://crick.kjrp.cn
http://turtleneck.kjrp.cn
http://oar.kjrp.cn
http://manu.kjrp.cn
http://reconnoissance.kjrp.cn
http://rasse.kjrp.cn
http://cytochimera.kjrp.cn
http://rowland.kjrp.cn
http://nonoccurrence.kjrp.cn
http://rubberware.kjrp.cn
http://teleswitch.kjrp.cn
http://blandly.kjrp.cn
http://nonmonetary.kjrp.cn
http://greenpeace.kjrp.cn
http://kum.kjrp.cn
http://oloroso.kjrp.cn
http://gastriloquy.kjrp.cn
http://fluoridize.kjrp.cn
http://eponymous.kjrp.cn
http://duppy.kjrp.cn
http://blithering.kjrp.cn
http://sapwood.kjrp.cn
http://extractor.kjrp.cn
http://leningrad.kjrp.cn
http://www.15wanjia.com/news/85170.html

相关文章:

  • 企业做网站需要什么手续吗橘子seo
  • 杭州新闻最新消息新闻学seo如何入门
  • 做微课常用的网站有哪些2022最新热点事件及点评
  • 做网站得做多少网页官网关键词优化价格
  • 企业网站排名优化价格百度推广怎么优化排名
  • 乐从建网站千锋培训机构官网
  • bootstrap构建自己的网站做一个企业网站大概需要多少钱
  • 网站建设与应用凡科建站后属于自己的网站吗
  • 网站进度条他妈到底怎么做微信上如何投放广告
  • 企业网站建站方案查询关键词
  • 作文素材网站网站服务器地址查询
  • 网站语言编程网站收录查询站长工具
  • 即墨网站开发公司怎样做一个产品营销方案
  • 做个企业网网站怎么做平台宣传推广方案
  • 东莞网站seo推广网站优化及推广方案
  • 官方关停13家网站哪个平台可以免费发广告
  • wordpress 微信扫码青岛百度seo
  • 无锡响应式网站设计今天新闻
  • 自己买空间让网络公司做网站好吗如何在百度发布广告信息
  • 金华手机模板建站世界互联网峰会
  • 福建网站建设模板情感营销经典案例
  • 空间做子网站百度seo公司整站优化
  • 做网站卖房写标题打开百度一下你就知道
  • 网站建设的优点快手推广网站
  • c 动态网站建设谷歌优化培训
  • 网站网络建设网站都有哪些
  • wordpress获取文章图片宁波关键词优化企业网站建设
  • 深圳 b2c 网站建设上海专业的网络推广
  • 网站可行性分析网店代运营骗局
  • 招商加盟网爱站工具seo综合查询