Not able to add the product in to cart through Ocracoke

Hi

we are using Ocrocoke(VSTS2005 PERFORMACE TOOL) for one of web application load testing .but problem that we are faching is we are not able to add the product in to cart.Scenario is User browse the site select a product and add product into the cart. Issue is same scenario is Executed perfectly through Jmeter. but not with Ocracoke.

What might be a problem is it some cookie or cache related issue or some thing else?

Please provide ur thoughts on same we are blocked on this front.

Thanks in advance

Naveen

[2081 byte] By [maynaveen] at [2007-12-30]
# 1

I would suggest looking closely at the output shown in the Web test result viewer. The request and response tabs will show exactly what was sent to the server and what was received from the server for each request in your web test. You will be able to see the exact URL, parameters, and cookies that are sent to the server and the responses from the server.

One thing to keep in mind is that Ocracoke does not run javascript on the responses that are received from the server. It issues the requests as specified in the web test and collects the responses. The following post has a link to an article that provides good debugging tips for web test authoring.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=177957&SiteID=1

Let me know if you discover more specific information regarding this problem and I might be able to help more.
Thanks,
Rick

RickPotts-MSFT at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 2

Hi Rick,

Thanks for reply. but still same issue persist. i have seen request and response but in web browser tab in web test result viewer. item is not shown in cart. and after sign in user cart is empty .

so i thing is there any plugin issue but i tried same . Is there onther way to resolve this issue. after lots of RnD we are block in this front.

~Naveen

maynaveen at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 3

Every web app is unique so I really cannot respond to a generic problem like "shopping cart is empty". I'm trying to describe a debugging technique that you might use to help you discover the problem.

What I was suggesting is that you view the extact URLs that were issued during the Web test (by viewing the requests/responses tabs in the Web test result viewer) and compare those with the set of URLs that are issued when your web app is behaving correctly. There must be a difference in the URLs or the data supplied with a form post.

Do you know the form of the URLs and correct sequence when the application is behaving correctly? If so, compare them with the URLs that were submitted during the web test. Possible problems might be

  • URLs constructed by javascript (Web tests do not run javascript, in this case you might have to manually add the URL to the web test)
  • State passed from one request to the next may require data binding. For example, VIEWSTATE may be passed in the response of one request and passed to a subsequent request. The VIEWSTATE that is recorded may be different than the VIEWSTATE that is generated with each run of the web test. Thus data binding is used to extract the VIEWSTATE from a response and bound to the _VIEWSTATE parameter of the subsequent request. The recorder adds the extraction and data binding automatically, but may need to be added if you manually added requests to your web test.

These are just a couple of examples. Most problems like this can be discovered by inspecting the URLs/parameters issued with each request by the Web test and then comparing them to the URLs/parameters issued by the browser. You might need some sort of HTTP tracing utility to see exactly what the browser issuing.

Have you compared the two sets of URLs and do you see a difference?
Thanks,
Rick

RickPotts-MSFT at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 4

Thanks for the reply Rick.

I tried to troubleshoot the same issue, without success.

Scenario: First Page is addTocart.aspx GET, that we are requesting. [This page in turn should give downloadcart.aspx GET as response, with the product added in the cart.

Things captured using fiddler tool: addtocart.aspx page, internally gets redirected to downloadcart.aspx GET request. 'Downloadcart.aspx' GET also internally calls several .js & .css files.

Ocracoke Issue: When scenario was recorded, only addtocart.aspx GET is recorded. When script is playbacked, call to downloadcart.aspx GET is automatically made; & in that automatic calls few of the .js files are NOT getting called.

Questions:

I want to add those .js script calls in ocracoke. But how to do that? because downloadcart.aspx GET is automatically called. How can i add additional requests in that?

I added a fresh new request of downloadcart.aspx GET below addtocart.aspx request & added .js calls those are not getting called as dependant requests. But still product is not getting added to cart. :( [Please note: here first auto download.aspx GET is called & my addtional explicit download.aspx GET request is called later] How can i stop first auto call?

Please help.

Thanks in advance :)

Jayashree

JayashreeK at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 5

Thanks for the reply Rick.

I tried to troubleshoot the same issue, without success.

Scenario: First Page is addTocart.aspx GET, that we are requesting. [This page in turn should give downloadcart.aspx GET as response, with the product added in the cart.

Things captured using fiddler tool: addtocart.aspx page, internally gets redirected to downloadcart.aspx GET request. 'Downloadcart.aspx' GET also internally calls several .js & .css files.

Ocracoke Issue: When scenario was recorded, only addtocart.aspx GET is recorded. When script is playbacked, call to downloadcart.aspx GET is automatically made; & in that automatic calls few of the .js files are NOT getting called.

Questions:

I want to add those .js script calls in ocracoke. But how to do that? because downloadcart.aspx GET is automatically called. How can i add additional requests in that?

I added a fresh new request of downloadcart.aspx GET below addtocart.aspx request & added .js calls those are not getting called as dependant requests. But still product is not getting added to cart. :( [Please note: here first auto download.aspx GET is called & my addtional explicit download.aspx GET request is called later] How can i stop first auto call?

Please help.

Thanks in advance :)

Jayashree

JayashreeK at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 6

Hi Rick,

Just curious to know, are you from Microsoft dev team for VSTS ? If yes, please let me know your MS email id. :)

Thanks,

Jayashree

JayashreeK at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 7

Hi Rick ,

Can you please provide more info on how to add extra URLs in the auto redirected response that is coming.

Thanks,

Jayashree

JayashreeK at 2007-9-5 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified