Timers a timer element allows to define a period to

This preview shows page 24 - 28 out of 45 pages.

Timers A Timer element allows to define a period to wait between each request. The timers that JMeter provides are − Constant Timer, Gaussian Random Timer, Uniform Random Timer, Constant Throughput Timer, Synchronizing Timer, JSR223 Time, BeanShell Time, BSF Time, and Poisson Random Time. The screenshot below shows a Constant Timer control panel:
Naresh Chauhan Software Testing, 2e © Oxford University Press 2016. All rights reserved. Assertions Assertions allow to include some validation test on the response of request made using a Sampler. Using Assertions it can be proved that an application is returning the correct data. When an Assertion fails JMeter gets highlighted. The JMeter assertions are Beanshell Assertion, BSF Assertion, Compare Assertion, JSR223 Assertion, Response Assertion, Duration Assertion, Size Assertion, XML Assertion, BeanShell Assertion, MD5Hex Assertion, HTML Assertion, XPath Assertion, and XML Schema Assertion. The following screenshot shows a Response Assertion control panel: Configuration Elements Configuration Elements allow to create defaults and variables to be used by Samplers. The Configuration Elements are Counter, CSV Data Set Config, FTP Request Defaults, HTTP Authorization Manager, HTTP Cache Manager, HTTP Cookie Manager, HTTP Proxy Server, HTTP Request Defaults, HTTP Header Manager, Java Request Defaults, Keystore Configuration, JDBC Connection Configuration, Login Config Element, LDAP Request Defaults, LDAP Extended Request Defaults, TCP Sampler Config, User Defined Variables, Simple Config Element, and Random Variable.
Naresh Chauhan Software Testing, 2e © Oxford University Press 2016. All rights reserved. Pre-processor Elements A Pre-processor element is something that runs just before a Sampler executes. They are used to modify the settings of a Sample request just before it runs, or to update variables that are not extracted from response text. The Pre-processor elements are HTML Link Parser, HTTP URL Re-writing Modifier, HTTP User Parameter Modifier, User Parameters, JDBC PreProcessor, JSR223 PreProcessor, RegEx User Parameters, BeanShell PreProcessor, and BSF PreProcessor. Post-processor Elements A Post-processor element executes after a Sampler finishes its execution. This element is mostly used to process the response data, for example, to retrieve a particular value for later use. The Post-Processor elements are Regular Expression Extractor, XPath Extractor, Result Status Action Handler, JSR223 PostProcessor, JDBC PostProcessor, BSF PostProcessor, CSS/JQuery Extractor, BeanShell PostProcessor, and Debug PostProcessor. Execution Order of Test Elements The execution order of the test plan elements is Configuration elements, Pre-Processors, Timers, Sampler, Post-Processors, Assertions, and Listeners.
Naresh Chauhan Software Testing, 2e © Oxford University Press 2016. All rights reserved. Example: Write a simple test plan which tests a web site.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture