MySQL官网:
https://www.mysql.com/
请注意:
需要把mysql-connector-java-5.1.45-bin.jar放到C:JMeterapache-jmeter-3.3lib目录下,
在做JDBC请求的时候,
JMeter会自动寻找该.jar包;
如
正则表达式提取器主要是用于提取某一个(段)数据,
用于后续的HTTP请求,
这个数据源可以是Html页面源码,
也可以Json格式,
可以是数据库返回的数据;
JMeter后置处理器之正则表达式提取器:
我们在浏览器做这几个操作:
第一步:打开博客园;
第二步:搜索“Java博客”关键字
JMeter怎样上传图片?
请注意图片的路径要与.jmx脚本的目录保持一致,
或者放在JMeter的bin目录下。
协议:http
服务器名称或IP:www.abcdef.com
方法:POST
路径:/file/upload
use multipart/form-data for POST:使
现在有这个一个场景:
普通用户在未登录的状态下,
先打开博客园的网站,
然后搜索JMeter的相关文章;
那么我们要对博客园进行性能测试,
分别模拟在100个、200个和300个请求的情况下,
博客园服务器的性能怎么样;
需要注意的是,
本次的场景是:
用户第一步同时打开博客园的首页,
然后等待5秒
用Maven构建Selenium依赖:
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId&
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.chrome.ChromeDriver;import org.openqa.selenium.chrome.Ch
1、根据id来定位:
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;public class Firefox {
用Maven来构建TestNG依赖:
<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;import org.testng.Assert;import or
driver.findElements()//定位一组List元素集合
driver.findElement()//定位一个元素
driver.getTitle()//获取页面标题
driver.get()//打开地址
driver.getWindowHandle()//获取当前窗口的句柄
driv
import org.openqa.selenium.By;import org.openqa.selenium.JavascriptExecutor;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement
Maven编译JMeter,
使用的是jmeter-maven-plugin插件:
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0"
JMeter插件管理器官网:
https://jmeter-plugins.org/
把jmeter-plugins-manager-0.16.jar放到C:JMeterapache-jmeter-3.3libext目录下,
启动JMeter,
有2种方式可以打开插件管理器:
1、点击图标:
2
何为靠谱?
在带新人过程中,交待测试新人测试任务时,都不会忘记交待这样的一句话:这个开发如何如何……
比如这个开发代码质量很好,少bug,修改bug也快。
比如这个开发编码有点慢,跟任务时多催一下。
比如这个开发编码质量不怎么样,b
测试用例类TeseNG.java:import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.f
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDri
使用Selenium PageFactory页面工厂的好处是:
当页面元素的位置发生变化时,
我们只需要去修改id或者xpath,
而不用去修改测试用例。
import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebEle
继承LoadableComponent类可以在打开地址时,
判断浏览器是否打开了预期的网址,
需要重写load()与isLoad()方法;
即使没有定义get()方法,
也可以进行get()方法的调用,
get()方法会默认调用页面对象类中的load()方法。
import org.openqa
以前经常有人问我,老师,面试中碰到不会回答的问题怎么办?同时会有这样的担心,如果答不上来就面不上了吗?
这样的疑问,相信不管是什么阶段的测试人员都会碰到,只不过老鸟基本不会有这样的担心,因为在面试过程中遇到不会回答的问题再正常不过了,就算是工作经验非常地丰富也不
一种数据与逻辑分离的Python单元测试工具
几个概念
TestCase
TestCase是一个完整的测试单元,最小的测试执行实体,就是我们常说的测试用例。
TestSuite
以某种特性将测试用例组合到一起的测试用例集合被称作TestSuite,中文可以叫做测试套件。TestSuite可以包含Te