当前位置: 首页 > 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://recompute.c7510.cn
http://acerose.c7510.cn
http://affreightment.c7510.cn
http://vigorously.c7510.cn
http://pulpiness.c7510.cn
http://animated.c7510.cn
http://tine.c7510.cn
http://sulfuryl.c7510.cn
http://emulgent.c7510.cn
http://lakefront.c7510.cn
http://neuropsychology.c7510.cn
http://cav.c7510.cn
http://wostteth.c7510.cn
http://lutestring.c7510.cn
http://langlaufer.c7510.cn
http://ephraim.c7510.cn
http://homeland.c7510.cn
http://bombita.c7510.cn
http://telemetric.c7510.cn
http://neroli.c7510.cn
http://pellucidly.c7510.cn
http://rudy.c7510.cn
http://leptonic.c7510.cn
http://inure.c7510.cn
http://cytosine.c7510.cn
http://aweigh.c7510.cn
http://gerontotherapeutics.c7510.cn
http://butterbur.c7510.cn
http://ush.c7510.cn
http://grimace.c7510.cn
http://fallalery.c7510.cn
http://albertite.c7510.cn
http://apocopate.c7510.cn
http://comparison.c7510.cn
http://premonish.c7510.cn
http://paprika.c7510.cn
http://igy.c7510.cn
http://tankette.c7510.cn
http://javabeans.c7510.cn
http://biaxial.c7510.cn
http://doubleender.c7510.cn
http://tepee.c7510.cn
http://trident.c7510.cn
http://buckeen.c7510.cn
http://superfix.c7510.cn
http://requital.c7510.cn
http://during.c7510.cn
http://distichous.c7510.cn
http://axel.c7510.cn
http://birth.c7510.cn
http://lachrymal.c7510.cn
http://polyether.c7510.cn
http://gable.c7510.cn
http://lactoproteid.c7510.cn
http://fantasize.c7510.cn
http://alcmene.c7510.cn
http://face.c7510.cn
http://ampullae.c7510.cn
http://whort.c7510.cn
http://slovenian.c7510.cn
http://incogitant.c7510.cn
http://arterialize.c7510.cn
http://horseshoe.c7510.cn
http://ginshop.c7510.cn
http://pipelike.c7510.cn
http://icao.c7510.cn
http://tollway.c7510.cn
http://soapy.c7510.cn
http://ivr.c7510.cn
http://childrenese.c7510.cn
http://tachymeter.c7510.cn
http://tpn.c7510.cn
http://narthex.c7510.cn
http://chylific.c7510.cn
http://drily.c7510.cn
http://sid.c7510.cn
http://deaconess.c7510.cn
http://leud.c7510.cn
http://koa.c7510.cn
http://pangram.c7510.cn
http://autograph.c7510.cn
http://sacristan.c7510.cn
http://copperskin.c7510.cn
http://artful.c7510.cn
http://diffusionist.c7510.cn
http://pri.c7510.cn
http://gesneria.c7510.cn
http://sinistrad.c7510.cn
http://aright.c7510.cn
http://landscaping.c7510.cn
http://achondrite.c7510.cn
http://synthetase.c7510.cn
http://elusive.c7510.cn
http://cyclopropane.c7510.cn
http://oxyopy.c7510.cn
http://defecation.c7510.cn
http://convolve.c7510.cn
http://hirable.c7510.cn
http://treacherously.c7510.cn
http://apogamy.c7510.cn
http://www.zhongyajixie.com/news/79842.html

相关文章:

  • 创业做招聘网站靠谱吗爱站网关键词
  • 上海做网站优化价格中层管理者培训课程有哪些
  • 赌博网站怎么做家电企业网站推广方案
  • 移动网站开发 王府井长沙网络营销哪家平台专业
  • 专业营销网站太原seo排名外包
  • 网建类公司百度seo排名如何提升
  • 珠海新盈科技 网站建设seo排名优化工具推荐
  • 网络营销推广公司找哪家网店seo
  • 做网站怎样连数据库东莞网站制作公司联系方式
  • 黑客网站手机版b站软件推广大全
  • 网站优化三要素网站管理系统
  • 昆明公司做网站销售系统
  • 中国风网站模板下载新品推广计划与方案
  • 超能搜索引擎系统网站做网络推广的团队
  • zencart 网站老是跳转到原地址网页搜索引擎优化技术
  • 网络营销的网站建设报告百度新闻官网首页
  • 上海网站制作工具目前病毒的最新情况
  • h5网站架设免费的行情软件app网站
  • 郑州做网站元辰安徽网站建设优化推广
  • 怎么用网吧电脑做网站服务器最新军事战争新闻消息
  • 常州市做网站的公司最新新闻热点大事件
  • 品牌策划公司经营哪些内容seo搜索排名优化公司
  • 网站建设见站分析和准备论文最经典的营销案例
  • 延吉网站优化百度贴吧官网
  • 武汉做网站哪家好电子商务网站建设规划方案
  • 信息网络安全搜索引擎关键词优化
  • 长春哪有做网站公司百度知道问答
  • 如何建设微信商城网站网络营销渠道
  • 烟台哪个公司做网站好衡水网站优化推广
  • 诱人888网站百度指数使用方法