Telerik Forums
Test Studio Forum
3 answers
153 views
We currently utilize VMWare virtual images for testing.  We have a few that are "non-persistent".  So the settings we have on the pool will destroy the instance after 4 hours of idle.  So... my question is... If I activate my license on the VM image, leave it for 4+ hours, will I be able to recover the license for use on my own laptop?  Has anyone ever tried this before?  I'd like to figure this out before my license potentially gets locked in space.

Thanks!

Leon
Anthony
Telerik team
 answered on 20 Apr 2012
3 answers
153 views
Hello

After logging into a system and getting and bunch of information, i then have a coded step to search through a table to find the correct button to push and then push it and then continue on with some other steps and subtests.

In IE and FF this works fine however in Safari I keep getting the error below.  I note that it does find the correct button and appears to push it (noticed by the browser refreshing) but does not continue on to the next step.  I have tried increasing the debugger timeouts but that hasn't helped. 

Any ideas?

the code to push the button after finding the ID =

Dim ClickAnchor As HtmlAnchor = Pages.TravelInsuranceSalesSystem0.FrameCtl00Contents1.ContentsTable.Find.ByExpression(Of HtmlAnchor)("id=" & findbutton)

 

ClickAnchor.Click

 


It is the ClickAnchor.Click line that the error is referring to.

Failure Information: ~~~~~~~~~~~~~~~Exception thrown executing coded step: '[Step__Find_and_Click_Buy_Policy_Button_CodedStep] : Find and Click Buy Policy Button'.InnerException:System.TimeoutException: Wait for condition has timed out at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) at ArtOfTest.WebAii.Core.Browser.WaitUntilReady() at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady) at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request) at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement) at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click() at Step___Find_and_Click_Buy_Policy_Button.Step__Find_and_Click_Buy_Policy_Button_CodedStep() in J:\Common Shared\Customer\CTI\Test\Step - Find and Click Buy Policy Button.tstest.vb:line 96

Plamen
Telerik team
 answered on 20 Apr 2012
1 answer
146 views
Hello,
I am trying to follow the example here
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/coded_steps.aspx 

I have a simple web test. 
At the end of the test, I need to write the testcase name, status, and message (in case of failure) to a remote mysql database. Instead of creating a separate coded step for each test case at the end of the recorded test steps, is it possible to create a generic coded step ?

Is there a way to reference the testcase name, status, message some how ?

For example: In NUnit, I can do the following in my test case teardown
console.write("name:" + TestContext.CurrentContext.Test.FullName)
console.write("status:" + TestContext.CurrentContext.Result.Status.ToString() ) 
console.write("message:" + 
TestExecutionContext.CurrentContext.CurrentResult.Message ) 

Thanks

Ali
Anthony
Telerik team
 answered on 18 Apr 2012
5 answers
152 views
What is the recommended way of comparing text between a data string and what is in the div/label/whatever?

I've got an issue where there looks to be a soft return within a string in the data but Test Studio is not picking up on this

Ie when I view source code of the page it has shows in line break within the text string but which is not represented with any html characters

From the error log:
[Expected:An excess of $100.00 applies to all claim events under the policy, unless the No Excess option
has been selected, in which case there will be no excess charged on each claim.],

[Actual:An excess of $100.00 applies to all claim events under the policy, unless the No Excess option has been selected, in which case there will be no excess charged on each claim.]

Any suggestions?
Cody
Telerik team
 answered on 18 Apr 2012
4 answers
150 views
Hi,
   telerik team

  For these dynamic frames, the frame ID that the same element belongs to is changed when you record each time. 

  I get the point to change the frame ID to '~****' for locating.

 And my case here is that one step is enter value in the textfield, the other step is to extract value from the textfield.
 So the problem comes, the same textfield is under different frames. 
When I run the test, it failed at the second step to locate i guess.

 Attachment for the frame and element structure is as below, hope it can help.

 Thanks a lot in advance.
Cp
Top achievements
Rank 1
 answered on 18 Apr 2012
3 answers
66 views

In IE8 with all settings configured as per the Telerik documentation.
* i.e. the 'Close download when complete' checkbox is UNCHECKED.

* The ReuseAppWindow property of the test is set to 1.

I am running a test that logs into and navigates a site using Local Data. The final step includes downloading a file.

The first iteration of the test, using the first row of Local Data, executes perfectly: the download dialog is recognized and handled accordingly (the filepath is entered from the Local Data).

The user is then logged out, the cookies cleared and a new browser window opened for the next run.

The second iteration of the test makes it to the end then fails to recognize the Windows Dialog as a Download Dialog and executes the 'Unexpected dialog' process instead (which fails the test).

This happens even when the Local Data is EXACTLY THE SAME in both rows.

Byron
Telerik team
 answered on 17 Apr 2012
2 answers
94 views
Hi All,

I want to know how elements gets added to Elements Explorer,on which basis Test Studio creates Pages in Elements Emplorer?
Is it possible to create Pages as per UI screen in Elements Explorere and add respective elements in those Pages? I want to logically seperate elements through Pages.
Byron
Telerik team
 answered on 17 Apr 2012
3 answers
131 views
Hi,
the WebUI Test Studio is only for web application? cannot support desktop application?
Does support java web application?
Anthony
Telerik team
 answered on 17 Apr 2012
1 answer
116 views
Ok, I create tests... sometimes... it'll tell me it can't find the test list i just created... so I have to close out of Test Studio, re-open it,. and then it'll usually find it this time....

Then I go to view the scheduled tests and previously run tests... and click "Reload from Server", and I constantly receive a message box stating, "Getting results from server failed! Please make sure the server is active." The server is running on the same machine, and yes... it's still running....

Another thing... when I go to delete previous or future tests, sometimes... i have to delete, reload, they re-appear and delete them again several times... either the scheduling software is VERY BUGGY... or I have something CONFIGURED WRONG.... I really hope it's the latter... as I really need the scheduling to work... :)

One other thing... the "Reload from Server" button gets grayed out pretty often... only solution I've found is to close and re-open app... very frustrating...

Thanks in advance!
Anthony
Telerik team
 answered on 17 Apr 2012
5 answers
172 views
This is driving me crazy, I've deleted all test results, and test lists... re-created them several times,... tried renaming them... and yet whenever I schedule a test to run, it fails every time... it doesn't even make it to first step.... not sure what's going on... see screen shot... this is what I am getting...
Plamen
Telerik team
 answered on 13 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?