Telerik Forums
Test Studio Forum
7 answers
1.6K+ views

Hello

 Is it possible for a new tab or a new browser window to be opened as part of the execution which keeps the same session accross both?  Or is there a way of closing the original browser and opening up a new one with the same session?

I have tried the blind mouse click and navigate to pop up window but none seem to work - i may well be missing something from these.

Any help would be great.

Thanks

Maria

Cody
Telerik team
 answered on 16 Dec 2015
3 answers
133 views

Hello.  I use the Run Selected Steps option repeatedly in one test run, working through test steps a set at a time.  I've noticed that as different web pages are opened in the run, whether they open by default with recording or paused recording mode varies.  If I don't pay close attention, often I end up recording steps when I don't intend to and almost as often, they are recorded in a different part of the test script and thus trip me up later.   Is this default something a user can control?  Shouldn't the test run start with the default of paused recording and then stay consistent with the user's selection from there?

 

Your help on this would be much appreciated.  Thanks!

 

Briar

Boyan Boev
Telerik team
 answered on 16 Dec 2015
11 answers
447 views
Hi, 

The Test Scheduling feature : http://www.telerik.com/teststudio/features/test-scheduling describes that we can email the results upon completion. 
But I'm not seeing the 3rd step - feature to email the results. 

Could it because of trial version or Is there something else in it?

Regards,
Shiva
Ivaylo
Telerik team
 answered on 16 Dec 2015
5 answers
181 views

I'm trying to make Test Studio verify that if a WPF app has no licence, it prompts for one when it is started. I've got that working, but I want to add a step that deletes a licence file from disk before the app is launched.

What is the best way to add a step that will delete a file from disk? Is there a better way of doing this? (I'm new to Test Studio, and Automation in general)

Boyan Boev
Telerik team
 answered on 15 Dec 2015
3 answers
213 views

I have the following step: Wait for element 'Div' 'is not' visiable.

Running the test it waits 30 seconds and then fails because the element is still visible. So, I increase the timeout time to 60000ms by enabling UseStepWaitOnElement property. However, the test continues to fail because it is still waiting 30 seconds. I tired running the test in a Test List and using the global ElementWaitTimeout setting with no success.

I can't seem to figure out why this step continues to wait 30 seconds even when changing the WaitOnElementsTimeout or the global ElementWaitTimeout setting.

Could this be because the element is a Div? If that is the case, could you recommend a possible work around?

Thanks in advance.

Cody
Telerik team
 answered on 10 Dec 2015
1 answer
86 views

Hi,

Just wondering if I can build into every a step a global wait for a particular property on an element, e.g. "IsVisible = false" on "AutomationId=BusyIndicator". I want to do this without having to insert this step wherever it is needed, but rather specify it globally somewhere and have all of my steps wait for this condition automatically. Does such a feature exist?

Cheers

Cody
Telerik team
 answered on 09 Dec 2015
10 answers
148 views

Having recently set up a scheduling server and when running scheduled test lists, the DOM and the associated runtime images at the point of test failure are not available.  The log entries indicate the file path for these files is invalid:

 

"[12/07 10:40:32,Telerik.TestStudio.ExecutionManagerService.exe(4312:53),TestStudio] AutomationHostState.LoadFailureImageFromDisk() : Invalid file path to load the bitmap from: C:\Windows\TEMP\ 130939764253142044_files\eReg ProjectInfoPage CUP NWFWMD_0_ImageOnFailure.png
[12/07 10:40:32,Telerik.TestStudio.ExecutionManagerService.exe(4312:53),TestStudio] AutomationHostState.LoadFailureDOMFromDisk() : Invalid file path to load the DOM from: C:\Windows\TEMP\ 130939764253142044_files\eReg ProjectInfoPage CUP NWFWMD_0_DomTreeOnFailure.txt"

 

How do I set up the correct file path?  Any direction on how to resolve this error would be much appreciated!

 

Thanks,

 

Briar

Cody
Telerik team
 answered on 09 Dec 2015
1 answer
141 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
50 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
233 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?