随笔分类 -  自动化学习-testng

testng测试报告
Httpclient---------框架
摘要:http://hc.apache.org/ package com.course.httpclient;import org.apache.http.HttpResponse;import org.apache.http.client.HttpClient;import org.apache.htt 阅读全文
posted @ 2021-08-05 14:14 thy520 阅读(85) 评论(0) 推荐(0)
springboot的demo
摘要:pom.xml <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-08-02 06:03 thy520 阅读(86) 评论(0) 推荐(0)
httpclient-----------post
摘要:<dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20170516</version></dependency> [ { "description":"这是我们的第一个post的mock例子 阅读全文
posted @ 2021-08-02 04:34 thy520 阅读(55) 评论(0) 推荐(0)
httpclient---------------------getCookies
摘要:配置 [ { "description":"这是一个会返回cookies的数据", "request":{ "uri":"/getcookies", "method":"get" }, "response":{ "cookies":{ "login":"true" }, "text":"恭喜你获取c 阅读全文
posted @ 2021-08-02 03:30 thy520 阅读(65) 评论(0) 推荐(0)
httpclient-----get对应的cookies
摘要:package com.course.cookie;import org.apache.http.HttpResponse;import org.apache.http.client.CookieStore;import org.apache.http.client.methods.HttpGet; 阅读全文
posted @ 2021-08-02 03:07 thy520 阅读(85) 评论(0) 推荐(0)
moco---对应mock测试
摘要:地址:https://repo1.maven.org/maven2/com/github/dreamhead/moco-runner/ 下载:moco-runner-0.11.0-standalone.jar 配置 java -jar ./moco-runner-0.11.0-standalone. 阅读全文
posted @ 2021-08-01 21:59 thy520 阅读(81) 评论(0) 推荐(0)
testng--测试报告
摘要:pom.xml <dependencies> <dependency> <groupId>com.relevantcodes</groupId> <artifactId>extentreports</artifactId> <version>2.41.1</version> </dependency 阅读全文
posted @ 2021-08-01 19:33 thy520 阅读(186) 评论(0) 推荐(0)
testng--超时测试
摘要:package com.Paramter;import org.testng.annotations.Test;public class timeTest { @Test(timeOut = 2000) public void timeSuccesTest()throws InterruptedEx 阅读全文
posted @ 2021-08-01 17:50 thy520 阅读(30) 评论(0) 推荐(0)
testng---异常测试/依赖测试
摘要:异常测试 package com.suite;import org.testng.annotations.Test;public class ExpectedTest { @Test(expectedExceptions = RuntimeException.class) public void r 阅读全文
posted @ 2021-08-01 16:21 thy520 阅读(79) 评论(0) 推荐(0)
testng-组测试
摘要:一:@Test(groups=“XXXX”)方式(方法分组) package com.group;import org.testng.annotations.AfterGroups;import org.testng.annotations.BeforeGroups;import org.testn 阅读全文
posted @ 2021-07-31 22:39 thy520 阅读(57) 评论(0) 推荐(0)
testng--忽略测试
摘要:package com.ignore;import org.testng.annotations.Test;public class IgnoreTest { @Test public void ignore01(){ System.out.println("ignore01执行"); } @Tes 阅读全文
posted @ 2021-07-31 21:03 thy520 阅读(70) 评论(0) 推荐(0)
testng-套件测试
摘要:套件测试 //登录成功 loginTest import org.testng.annotations.Test;public class LoginTest { @Test public void login(){ System.out.println("PMOS登录成功"); }}//查询正常 阅读全文
posted @ 2021-07-31 20:46 thy520 阅读(62) 评论(0) 推荐(0)
testng模块学习1-基本注释
摘要:testng的配置pom.xml <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.10</version> <scope>test</scope></dependency> T 阅读全文
posted @ 2021-07-29 16:28 thy520 阅读(46) 评论(0) 推荐(0)
linux——jdk,mysql,tomcat
摘要:学习安装 阅读全文
posted @ 2019-11-26 23:16 thy520 阅读(108) 评论(0) 推荐(0)