gatling系列教程(翻译)-第二节(What’s New in 2.2)
2017-10-23 10:58
429 查看
JDK
Gatling now requires JDK8. JVM default tuning uses G1 Garbage Collector, so we strongly advice you use a very up-to-date JDK, not early versions.gatling要求使用Jdk1.8,jvm默认调整使用G1垃圾收集器,因此我们强烈建议你使用最新JDK,而不是老版本的JDK.
Core
Feeder Shuffle
You can nowshufflea feeder content before enqueuing its content, see Feeder documentation for more details.
Assertions
Gatling now supports “per-million” assertions, similar to “percent” ones.Conditional Checks (since 2.2.1)
It’s now possible to only perform a given check when a given condition is met. See Conditional Checks documentationfor more details.HTTP
Native Transport
Gatling is now based on Netty 4 that provide an optional native epoll-based NIO re-implementation (different from JDK NIO) which can give better throughput. This option is only available on Linux. See Netty documentation for more details.Gatling ships with the required jar, but the option is turned down by default.
In order to enable it, set
gatling.http.ahc.useNativeTransportto
truein
gatling.conf.
OpenSSL Support
Netty 4 also provides a support for OpenSSL and BoringSSL. See Netty documentation for more details.Gatling doesn’t ship the required jar and it depends on your operating system and if you want static or dynamic binding. You’re expected to manually add the suited library to Gatling’s classpath.
In order to enable it, set
gatling.http.ahc.useOpenSslto
truein
gatling.conf.
Forms Support
You can now use theform("cssSelector").saveAs("myForm")check to capture a
Map[String, Seq[String]]of all the inputs of an HTML form at once.
You can then feed them back to a later request. See HTTP request documentation for more details.
Polling Support
Gatling now supports HTTP polling, see HTTP polling documentation for more details.Hostname Resolution
By default, virtual users now use a shuffled list of the DNS records Gatling gets from the JDK. If you use DNS round-robin, this will balance your virtual users amongst the nodes of a static cluster.Alternatively, you can enable
perUserNameResolutionon the HTTP protocol and have each virtual user perform DNS resolution on its own. This, way, your virtual users would be properly balanced if your cluster grows elastically under load. See HTTP protocol documentation for more details.
We also support DNS fail-over, meaning that virtual users will try the next DNS record of they couldn’t connect to the first address.
Hostname Aliasing
You can bypass hostname resolution and define aliases inhostNameAliaseson the HTTP protocol. See HTTP protocol documentation for more details.
Local Addresses
It’s now possible to pass multiple local addresses to the HTTP protocol inlocalAddresses. See HTTP protocol documentation for more details.
Reports
JUnit Format Report File
Gatling now generates a JUNIt format report file based on the assertions in your simulation. This file is generated as/js/assertions.xml.
Groups Duration
You can switch from Group cumulated response times to duration when generating the reports. Seegatling.charting.useGroupDurationMetricoption in
gatling.conf
Maven Plugin
The Gatling Maven plugin now providestestand
integration-testthat are bound to the phases of the same name.
It also now provides a
useOldJenkinsJUnitSupportthat exposes our JUnit file to Jenkins. At some point, we’ll provide a native support.
相关文章推荐
- gatling系列教程(翻译)-(附加三)checks
- gatling系列教程(翻译)-(附加二)feeders
- gatling系列教程(翻译)-第四节(高级教程)
- gatling系列教程(翻译)-(附加一)系统环境
- gatling系列教程(翻译)-第三节(快速开始)
- gatling系列教程(翻译)-第一节
- iOS 各版本中的新特性(What's New in iOS)- 目录翻译完成
- What's new in Swift 2.2
- What is new in Android security (M and N Version) - Google I/O 2016 翻译
- iOS 各版本中的新特性(What's New in iOS)- 目录翻译完成
- Hyper-V 2016 系列教程53 What's new in Hyper-V on Windows Server 2016
- 经典教程翻译系列: Mach-II新手指南(下)
- vSphere 6.0 – What’s New in vCenter Server Appliance(vCSA) 6.0
- QML官方系列教程——Use Case - Visual Elements In QML
- What’s New in OpenGL ES 3.0
- 5.Swift教程翻译系列——Swift字符串和字符
- Metasploit从入门到放弃系列教程 第二节 扫描发现
- QTP - 29 What’s New in QTP QTP的一些功能介绍
- What's new in XAML of .NET 4.0
- 8.Swift教程翻译系列——控制流之条件