Hello,
Sorry in advance if I didn't format this correctly, first time poster.
I'm currently working on developing tests to read omniture tags being sent from websites to Site Catalyst database. Most of these calls occur on page load or through certain button clicks i.e. "add to cart" and must have their data captured and verified after going through a proxy. Based on previous forum posts I've been able to build a coded module that has Telerik start a proxy, then goes to the site, then checks the calls for the host under which the omniture call is made and captures that data.
My problem occurs whenever there are multiple calls that happen from the same button. Currently I can only capture 1 call, and it's random which one will fire first, so I need to be able to see both, capture both, then check if the values are correct.
I've attached the following:
HTTP proxy module I built that starts the proxy and also contains methods to click on certain buttons and listen for the calls then returns a dictionary
The Dictionary Lookup module defines methods that allow the us to compare key value pairs in the dictionary with our asserts.
WebTest(1) which puts all these steps together.
Below is the method I use to click on the "add to cart" button and wait for an omniture to be made and stores the data in a dictionary and returns it. I feel like this is what I need to modify in order to capture two calls instead of just one.
public Dictionary<string, string> ClickAddToCartButtonAndListen()
{
found = false;
Console.WriteLine("Omniture Url: " + omnitureUrl); //DEBUGGING
// Add our HTTP response event handler. For each response the proxy gets, parse for the Omniture URL's query string parameters
ResponseListenerInfo li = new ResponseListenerInfo(GetQueryStringParamatersAndValues);
Manager.Current.Http.AddBeforeResponseListener(li);
// Click 'Add to Cart Button'
Pages.OfficialVailVailLift.Button.Click(false);
// Wait for the page to completely load
Manager.Current.ActiveBrowser.Frames.WaitAllUntilReady();
Manager.Current.ActiveBrowser.WaitUntilReady();
Manager.Current.ActiveBrowser.WaitForAjax(15000);
// Wait for '1000' msec. (this is to conpensate for the Omniture pixel being one of the last things called
System.Threading.Thread.Sleep(1000);
// We don't need the event handler any longer. Removing it stops listening to responses in the proxy
Manager.Current.Http.RemoveBeforeResponseListener(li);
return dictionary;
}
Hi there
I'm basically trying to delete an address from a customer account and make sure that after the deletion the text (title given to the address) does not display.
I've tried highlighting the element when it is visible and then selecting a check of 'is not visible' and moving the step to the correct place but it throws an exception of 'unable to locate element' when the test is run.
Any help would be great - I'm hoping I'm missing something really simple!
Thanks
Maria
Hello,
What's the recommended process for checking if an element is actually visible on-screen rather than just existing somewhere in the browsers DOM? I have an application where elements are scrolled in/out of view using the Bootstrap ScrollSpy tool - http://getbootstrap.com/javascript/#scrollspy , so would like to be able to test this.
Thanks,
Darren
I need to automate a workflow where I click on a URL and a GUID is returned. Everytime I run it a different GUID is returned.
How can we automate using test studio?
I would like to download the trial of Test Studio version 2014 3 903.
I don't found it in the site.
It's possible to downaload it.
Thanks , Tommaso