Telerik Forums
Test Studio Forum
1 answer
139 views
Does the HTTP Proxy module in the WebAii libraries work with an HTTPS application?  I am trying to get the headers from a response to grab some information.

Dan
Anthony
Telerik team
 answered on 23 Apr 2012
11 answers
185 views
Hi,

I have an issue with Test Lists.  I am running Test Studio version 2011.2.1413.0

I have a script that iterates through 7 rows of data in a data file.  When I run the script directly from the Record tab everything works perfectly.  When I run the script from a Test List the script fails at the first iteration.  There is no error reported from the Test List.

The faiure happens at the first IF...ELSE statement in the script.  The IF statement test is:
IF (Verify 'InnerText' 'StartsWith' 'Showing 0' on 'TableUsersInfoDiv') THEN

On the first pass the IF clause should report TRUE, and it does do that when the script is run from the Record window.  Below is an extract from the (verbose) log generated by the Test List execution (and please note that all conditions prior to execution through the Reporting screen and the Test List are identical in every instance):

Trace] : Wait for 'InnerText' 'StartsWith' 'User List' on 'HtmlTag'
[Trace] : Click 'AllRadio'
[Trace] : Click:([Element: 'input:3' (id=all)])
[Trace] : Enter text 'test' in 'Text' - DataDriven: [$(UserName)]
[Trace] : SetText:([Element: 'input:1']) - Text:
[Trace] : ScrollToVisible:([Element: 'input:1']) - ElementTopAtWindowTop
[Trace] : MouseClick:LeftDown (1108,454)
[Trace] : MouseClick:LeftUp (1108,454)
[Trace] : MouseClick:LeftClick (1108,454)
[Trace] : IF (Verify 'InnerText' 'StartsWith' 'Showing 0' on 'TableUsersInfoDiv') THEN
[Trace] : Comment: User ID already exists so just logout
[Trace] : Execute test 'g_Logout'
[Trace] : Comment: Script: g_GenericLogout; Author: Nigel Edwards; date: 02/03/12
[Trace] : Execute test 'g_LogoutWaitForButton'
[Trace] : Comment: Script: g_WaitForLogoutButton; Author: Nigel Edwards; date: 02/03/12

The COMMENT line reported above is actually within the ELSE clause.  This shows that a swathe of code (over 30 lines) within the IF statement is not being executed when run from the Test List.  In fact the 'InnerText' does start with 'Showing 0'.  I've attached the full test script to this posting, but in brief, what should happen after the IF test is a further verification line immediately followed by a button-click.  Instead the Test List version skips to the ELSE clause, which is a Logout command.
As I say, the script functions 100% correctly when run directly from the Record window.

Thanks,
Nigel Edwards, Transition Computing.
Ivaylo
Telerik team
 answered on 21 Apr 2012
3 answers
159 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
163 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
155 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
166 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
160 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
69 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
106 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
148 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?