Telerik Forums
Test Studio Forum
1 answer
133 views

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;
        }

 

 

Cody
Telerik team
 answered on 08 Dec 2015
3 answers
41 views
I have a web application built with http://ionicframework.com/. On the test execution there is a problem with element selection on pop-up message (see video in att.). Element is successfully validated if in Live mode and also Simulate real click is enabled on the test step.
Cody
Telerik team
 answered on 08 Dec 2015
4 answers
211 views

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

Cody
Telerik team
 answered on 08 Dec 2015
3 answers
858 views

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

Cody
Telerik team
 answered on 08 Dec 2015
7 answers
67 views
I am testing an application developed in .Net/WPF and Rad Ribbon Tab/Object/Menu/Icons. I am using WPF Test Record and  Play feature, but unfortunately Test Studio is not identifying/picking up/recognizing RAD RIBBON TAB/MENU objects. Please help
Ivaylo
Telerik team
 answered on 07 Dec 2015
1 answer
94 views

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?

Ivaylo
Telerik team
 answered on 07 Dec 2015
3 answers
81 views

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

Ivaylo
Telerik team
 answered on 07 Dec 2015
8 answers
322 views
Hi all,

How can we verify the grid data (along with the headers) with an Excel file? I did data binding, but it didn't work. May be because I'm doing it wrong. So can anyone give me a walk through to create that test? (I'm new to Test Studio).

Please help
Cody
Telerik team
 answered on 03 Dec 2015
13 answers
126 views
Is it possible to run Telerik.TestStudio.CommandLineClient.exe or ArtOfTest.Runner.exe on the command prompt and if the test or test list fails then to automatically generate a bug on TFS?
Cody
Telerik team
 answered on 03 Dec 2015
5 answers
47 views
Hi Team,

While under the Find Elements window, I was trying to filter a heading by going through the various layers to get a specific item to filter but once I find one, I am unable to use it on the right side (where the filters are) and the suggestions do not show anything but a high level. How can I use these items in the filters?
Cody
Telerik team
 answered on 03 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?