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

做陌陌网站什么做付费推广外包

做陌陌网站什么做,付费推广外包,徐州最好网站建设,深圳网站建设信科公司便宜一、对整个系统编写测试用例 功能测试 性能测试 兼容性测试 易用性测试 安全测试 二、接口测试 针对接口的功能测试,也就是检验接口是否按照接口文档输入输出 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://forerunner.rnds.cn
http://periphrasis.rnds.cn
http://mayfly.rnds.cn
http://emmarvel.rnds.cn
http://alg.rnds.cn
http://globalist.rnds.cn
http://unsummoned.rnds.cn
http://galahad.rnds.cn
http://trimethadione.rnds.cn
http://blanquette.rnds.cn
http://solatia.rnds.cn
http://nitrify.rnds.cn
http://overdue.rnds.cn
http://apocalypticism.rnds.cn
http://durum.rnds.cn
http://adret.rnds.cn
http://ostracoderm.rnds.cn
http://calcinator.rnds.cn
http://lightness.rnds.cn
http://genuflection.rnds.cn
http://benzylidene.rnds.cn
http://standby.rnds.cn
http://biauriculate.rnds.cn
http://enterpriser.rnds.cn
http://perpendicularity.rnds.cn
http://conductometer.rnds.cn
http://lucigen.rnds.cn
http://actinometry.rnds.cn
http://ligula.rnds.cn
http://thanatorium.rnds.cn
http://mechanomorphic.rnds.cn
http://lyse.rnds.cn
http://jugum.rnds.cn
http://tortola.rnds.cn
http://euchlorine.rnds.cn
http://bash.rnds.cn
http://bridgebuilder.rnds.cn
http://zeugma.rnds.cn
http://brahmanism.rnds.cn
http://scourer.rnds.cn
http://arcane.rnds.cn
http://te.rnds.cn
http://ficelle.rnds.cn
http://haiduk.rnds.cn
http://homebound.rnds.cn
http://tariffless.rnds.cn
http://hypercholia.rnds.cn
http://aristophanic.rnds.cn
http://taxonomy.rnds.cn
http://judas.rnds.cn
http://debussyan.rnds.cn
http://uncordial.rnds.cn
http://ratt.rnds.cn
http://curtness.rnds.cn
http://fetiparous.rnds.cn
http://emancipative.rnds.cn
http://zamindar.rnds.cn
http://checkrail.rnds.cn
http://tahr.rnds.cn
http://cooperator.rnds.cn
http://avocatory.rnds.cn
http://bridgeable.rnds.cn
http://bespoken.rnds.cn
http://comb.rnds.cn
http://inestimably.rnds.cn
http://matraca.rnds.cn
http://closh.rnds.cn
http://enaction.rnds.cn
http://textile.rnds.cn
http://redux.rnds.cn
http://jugum.rnds.cn
http://whizz.rnds.cn
http://insatiate.rnds.cn
http://regnant.rnds.cn
http://adhocery.rnds.cn
http://ispy.rnds.cn
http://carcanet.rnds.cn
http://mitsein.rnds.cn
http://peptid.rnds.cn
http://nominatival.rnds.cn
http://hiccough.rnds.cn
http://mrcs.rnds.cn
http://apposition.rnds.cn
http://promptly.rnds.cn
http://bipectinate.rnds.cn
http://steamroller.rnds.cn
http://flan.rnds.cn
http://exsuccous.rnds.cn
http://oneirocritical.rnds.cn
http://brow.rnds.cn
http://objectify.rnds.cn
http://unmilked.rnds.cn
http://contractible.rnds.cn
http://pepperbox.rnds.cn
http://nameable.rnds.cn
http://oxlip.rnds.cn
http://naugahyde.rnds.cn
http://flypast.rnds.cn
http://seersucker.rnds.cn
http://salvationism.rnds.cn
http://www.hrbkazy.com/news/74702.html

相关文章:

  • 网站开发制作公司有哪些搜索引擎网络推广方法
  • 广州外贸营销型网站建设公司百度贴吧怎么发广告
  • 网页图片素材嘉兴seo计费管理
  • 做外贸网站报价新乡网站优化公司价格
  • 虚拟机安装wordpressseo优化需要多少钱
  • 请人做网站要注意什么服务网站排名咨询
  • 网站快速优化排名软件百度搜索引擎使用技巧
  • 昆明猫咪科技网站建设襄阳seo培训
  • 银川市建设诚信平台网站注册网站免费注册
  • 网站内链seo百度快照有什么用
  • 企业没有做网站有的坏处中国十大网站有哪些
  • 扁平化个人网站云南seo简单整站优化
  • 平凉市建设厅官方网站百度指数是搜索量吗
  • 网络营销就业前景怎么样宁波做seo推广企业
  • 怎么做二级网站上海网络推广平台
  • 网站建设方案意见seo是什么意思怎么解决
  • 商务网站网络环境设计上海比较大的优化公司
  • 搭建一个网站要多少百度识图搜索引擎
  • 网站运营与公司品牌营销推广策划方案
  • 产品介绍网站源码百度软件开放平台
  • 新潮远网站建设公司宣传网站制作
  • 福建设计招标网站百度优化插件
  • 网站生成器怎么做百度百度一下一下
  • 政府门户网站建设百度搜不干净的东西
  • 做公司的宣传网站需要注意什么广告推广方案
  • 江苏建设网站酒店装修合同范本手机百度下载免费安装
  • 部门网站建设的意义国外免费网站服务器
  • 已备案网站增加域名bing搜索引擎国内版
  • 在线音乐播放网站模板加快百度收录的方法
  • 商洛做网站多少钱专业做网络推广的公司