Search
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest None
Most users ever online was 36 on Wed Jan 10, 2018 12:25 am
Modeling Overview
Page 1 of 1
Modeling Overview
Modeling Scripts enables you to develop realistic Tests and improve the quality of the Test results produced.
There are extensive modeling options available within Script Modeler that can help you to develop realistic performance Tests. When you are familiar with the structure of Scripts and in particular the SCL code they are written in, you will be well equipped to model them. SCL is a simple scripting language that gives you control over the Scripts you create. It enables you to model Scripts to accurately simulate the Web activity and to generate the load levels you need against target WAEs when a Test is run.
How you model the Scripts you record or whether you choose to do so at all, depends on the functionality of the WAE you are testing and the type of Web activity you want to Test.
A key modeling technique involves the addition of variables to a Script which enable you to change the fixed values they record. For example, if a Script records login details which identify the user who conducted the original browser session, you can replace this information with a variable that changes the user login details each time the Script is replayed during a Test-run.
Variables can be incorporated into Scripts to control a variety of elements including user selections. For example, a Script may record items purchased by the user which you need to vary in order to make your Test more realistic. Introducing a variable to replace the recorded selections enables you to do this.
Using variables to change the activity and the identity of the Virtual Users enables you to use a single modeled Script to simulate multiple unique browser users when the Test is run.
Script Modeling is enhanced beyond the representation of HTTP requests with SCL and the addition of variables to a Script, by providing the capability to include objects from a Web page in a Script. HTTP/S Load provides the capability to use DOM objects from the Web pages that are saved at the same time a Script is recorded, to model the corresponding Script. This modeling technique is known as DOM Addressing and can be used to verify the results of a Test by checking that the WAE responses returned during a Test-run are correct.
If you are developing a Test which includes Scripts that run in sequence within the same Task Group you need to model the Scripts for the Task Group to replay correctly when the Test is run. If your WAE uses cookies or issues session identities, then each Script you create will contain a unique identity that has no connection to the other Scripts included in the Task Group. You need to establish a connection between the Scripts by modeling them. For more information Developing a Modular Test Structure.
Whether you are developing a modular Test structure or you are using Task Groups that reference a single Script, it is important to check that the Test is running correctly. Make use of the DOM Addressing function to help verify a Test-run. You can also run a single stepping session to check that the WAE responses are appropriate.
In addition to the SCL code, a knowledge of HTTP commands is useful in reading and modeling Scripts.
There are extensive modeling options available within Script Modeler that can help you to develop realistic performance Tests. When you are familiar with the structure of Scripts and in particular the SCL code they are written in, you will be well equipped to model them. SCL is a simple scripting language that gives you control over the Scripts you create. It enables you to model Scripts to accurately simulate the Web activity and to generate the load levels you need against target WAEs when a Test is run.
How you model the Scripts you record or whether you choose to do so at all, depends on the functionality of the WAE you are testing and the type of Web activity you want to Test.
A key modeling technique involves the addition of variables to a Script which enable you to change the fixed values they record. For example, if a Script records login details which identify the user who conducted the original browser session, you can replace this information with a variable that changes the user login details each time the Script is replayed during a Test-run.
Variables can be incorporated into Scripts to control a variety of elements including user selections. For example, a Script may record items purchased by the user which you need to vary in order to make your Test more realistic. Introducing a variable to replace the recorded selections enables you to do this.
Using variables to change the activity and the identity of the Virtual Users enables you to use a single modeled Script to simulate multiple unique browser users when the Test is run.
Script Modeling is enhanced beyond the representation of HTTP requests with SCL and the addition of variables to a Script, by providing the capability to include objects from a Web page in a Script. HTTP/S Load provides the capability to use DOM objects from the Web pages that are saved at the same time a Script is recorded, to model the corresponding Script. This modeling technique is known as DOM Addressing and can be used to verify the results of a Test by checking that the WAE responses returned during a Test-run are correct.
If you are developing a Test which includes Scripts that run in sequence within the same Task Group you need to model the Scripts for the Task Group to replay correctly when the Test is run. If your WAE uses cookies or issues session identities, then each Script you create will contain a unique identity that has no connection to the other Scripts included in the Task Group. You need to establish a connection between the Scripts by modeling them. For more information Developing a Modular Test Structure.
Whether you are developing a modular Test structure or you are using Task Groups that reference a single Script, it is important to check that the Test is running correctly. Make use of the DOM Addressing function to help verify a Test-run. You can also run a single stepping session to check that the WAE responses are appropriate.
In addition to the SCL code, a knowledge of HTTP commands is useful in reading and modeling Scripts.
yadav- Posts : 12
Reward Points : 30
Join date : 2010-09-13
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Mon Mar 06, 2017 3:29 am by JebaQpt
» Can you say some unavoidable aspects for all Android App Testing Services?
Thu Oct 20, 2016 3:12 am by testbytes
» Can someone say about the things to look for while hiring iPad App Testing Services?
Fri Oct 14, 2016 5:26 am by testbytes
» Can you suggest some top testing frameworks used by Android App Testing Services?
Fri Oct 14, 2016 5:24 am by testbytes
» Can someone say why should hire specialist iPad app testing services?
Fri Oct 14, 2016 5:21 am by testbytes
» Can someone say how Android mobile app testing will become crucial in next 5 years?
Wed Aug 17, 2016 5:44 am by testbytes
» Can you say how iPhone app testing services fare in next few years?
Wed Aug 17, 2016 5:33 am by testbytes
» Can anyone say how different types of Mobile Application Testing improve the credibility of apps?
Wed Aug 17, 2016 5:07 am by testbytes
» Can you say some useful fragmentation tools used by android app testing services?
Mon Jul 25, 2016 1:01 am by testbytes