Jump to content


Photo

Problem with logged User in a Commerce Site

WAPT LOGGED USER

  • Please log in to reply
1 reply to this topic

#1 mycsiCL

mycsiCL

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 September 2014 - 08:52 PM

Hello,

 

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.

 



#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 03 September 2014 - 07:23 AM

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:

 

http://www.loadtestingtool.com/help/parameter-value-dynamic-calculation.shtml

 

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.


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users