Jump to content
WAPT Forum
Sign in to follow this  

Problem with logged User in a Commerce Site

Recommended Posts



I'm in trouble, need some help. I'm tryin to run a test on a commercial site that requires money movement within the site. The thing is, when i record the script, i can buy shares from the stock market, but when i run the test for the Tool to buy them, it seems to not be making any money movement.


To buy shares i have to be logged in with an user account. My account has money and it all seems alright when i'm recording the script. When i try to Run the test, it doesnt make anything, no buying, no transactions are made.

The script is 1 User, 1 Session nothing complicated.


Can anybody tell me what i'm doing wrong ? What i'm i suppose to do for the Tool to perform and buy a Share ? Or at least some transaction on the Site.

Cause i get the Report that the test was performed, but when i get in the site as a normal user and try to validate that i bought something, nothing is showed on the log.


Can someone PLZ PLZ tell me what might be going wrong cauz i'm in big trouble if i cant make this tool to make automatized shopping of this shares.


If anyone needs any information on my problem just send me an email and i'll be glad to inform you on my issues.


Share this post

Link to post
Share on other sites

Most probably the problems appear because you have not parameterized the HTTP requests in your profile. Note that initially all requests are recorded as is. If you use a recorded profile without modifications, WAPT will simply repeat all the same requests with the same values of all parameters. However when working with dynamic site content, some parameters should have unique values for each session.


There is no exact algorithm on how to find all places where the parameterization is required. WAPT can do some automatic parameterization, but only for standard cases. The remaining work depends on your web site, so you have to do it manually. At the same time WAPT provides a convenient interface for this purpose. So, the general approach is as follows.


After recording a profile click the "Verify test" button to verify it. The profile will be executed as is, without any modifications (except for the automatic parameterization made by WAPT). When the verification is finished you can check the "Logs" folder for errors and find the first request that produced an error. The goal is to find dynamic session-specific values inside that request. You can do this by comparing different sessions. Usually such session-specific values are contained inside the request parameters, but they can also be passed inside the main part of the URL. When you find such value you need to find a place (the body of one of the previous responses) from which you can extract it. You can use the “Edit | Find” feature for that.


In WAPT you can select any request and switch to the "Response processing" tab in the right view. Here you can see the recorded request and server response to it. You can use the "Find" option to search for the required values in it. When you find the one you need, you can add a variable by clicking the "Add" button near the list of variables. The goal is to specify how to extract the value from the server response and assign it to that variable. Usually this is done with help of the internal WAPT functions. You can read more about them here:




We also have a demo clip showing a parameterization example. You can download it here:

Part 1: http://www.loadtestingtool.com/quickstart/WAPTdemo-part1.avi

Part 2: http://www.loadtestingtool.com/quickstart/WAPTdemo-part2.avi


After you specify how to extract the value to a variable, you can use that variable with help of the $Var() function.


If you want, we can do all the work for you and deliver the ready to use profiles for your web site. We can do this for additional charge. In this case you will only need to choose load volume parameters and run the test. This will save your time and will demonstrate how the parameterization works on your specific web site, so next time you will be able to do this yourself. Please let me know if you are interested in this service.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...