Telerik Forums
Test Studio Forum
1 answer
120 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
130 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
136 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
53 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
77 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
113 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
96 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
151 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
1 answer
32 views
Are there any known issues with the Safari 5.1.2 browser compatibility. I have one of the coded step in which I am getting the HTML table and traversing through its rows. Once I find matching row, I am selecting the checkbox from the row. This code is working fine for IE, Firefox and Chrome. So just wanted to check if there are any known issues with Safari?
Anthony
Telerik team
 answered on 12 Apr 2012
1 answer
33 views
Support,

Bug tracking advanced settings pop-up hiding from view on New R1-2012.

Please see attached sample video.

Thanks,
Madhu.

Anthony
Telerik team
 answered on 12 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?