QA Forums
Welcome on the QA Forums.

To take full advantage of everything offered by our software testing & Quality forums, please log in if you are already a member or join our community if you're not yet.... Smile


Join the forum, it's quick and easy

QA Forums
Welcome on the QA Forums.

To take full advantage of everything offered by our software testing & Quality forums, please log in if you are already a member or join our community if you're not yet.... Smile
QA Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 36 on Wed Jan 10, 2018 12:25 am
March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar


Modeling Overview

Go down

Modeling Overview Empty Modeling Overview

Post  yadav Thu Oct 07, 2010 11:35 pm

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.

yadav

Posts : 12
Reward Points : 30
Join date : 2010-09-13

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum