Telerik Forums
Test Studio Forum
1 answer
54 views
I am doing a test of an ajax form that we have running, and one of the conditions it does is sets a buttons state using class based on some of the jquery.ui built-in classes.  Our form is running this very long running ajax routine (we are doing some complex file IO) is using signalr to send feedback back to the ui.  What I would like to do is check the state of a button html element on the screen, and wait while it has a specific class.  when that class disappears (the button becomes enabled) I would like to proceed.

Here is the buttons initial html:

<button class="jw-button-next ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-secondary ui-state-hover ui-state-disabled" role="button" aria-disabled="false" type="button">

notice 'ui-state-disabled' there, that is what I want to be waiting to disappear.

Any suggestions?
Boyan Boev
Telerik team
 answered on 24 Dec 2013
1 answer
95 views
We have three testing environments:  Dev, QA, and Production.  We also have scripts that do database comparison between app and DB.  Currently, the connection string is hard-coded.  I know that this should be variable/datasheet driven.  What would be best practice for this considering that we will test on three seperate databases during the sprint?  Using the datasheet variable, the sheet would have to be changed each time we want to hit a different database.  I undertand this would be easier than changing the coded connection string in each test, but it seems like there is probably a better way to do this that I cannot think of.  Ideas/thoughts/enlightenment?

Thanks!!
Boyan Boev
Telerik team
 answered on 24 Dec 2013
1 answer
36 views

We want the ability for any one of our test team members to create test scripts, check them in, and for them to then be available to the entire test team.

We noticed that when we create a project in TestStudio it creates a bunch of folders like bin, Data, My Project, obj, etc.

Could you please advise us on which of these files/folders need to be checked-in to achieve this?

Rodney
Telerik team
 answered on 23 Dec 2013
3 answers
110 views
In a test case, I click on a PDF link on the page, IE 9's download dialog appears along the bottom of the browser window. The test case then handles the dialog by Canceling it.

If I run this test case in Quick Execution, it works.
If I run this test case as part of a Test List, it fails with an Unexpected Dialog error.

Is this a known issue? Am I over-looking something? I believe this test case worked in a Test List before I updated to 2013.2.

Thanks for your help.

Donna
Rodney
Telerik team
 answered on 23 Dec 2013
4 answers
376 views
In the Element Properties window there appear two properties whose use I am unsure of. I understand they deal with baseURL functionality, but I would be grateful if someone could explicitly explain what they are for. The properties in question are:

CompareURL and EntireURL

In fact - if there is a document which explicitly explains all of the properties on the element property page, then I would love to see it.

Thank you!
Mario
Telerik team
 answered on 23 Dec 2013
3 answers
105 views
I have recorder some steps and added If else loop in the steps. If loop is having the condition, i just wanted to change the condition from if statement
Velin Koychev
Telerik team
 answered on 20 Dec 2013
7 answers
597 views
I am attemptin to cycle through an unordered list on a page, and then compare that to the values in the database.  So far, I am having trouble in cycling the <UL>.  Below is what I currently have:

foreach(Control item in Suites.Controls)
{
    if(item is HtmlGenericContol)
  {
      Log.WriteLine((HtmlGenericControl)item).InnerHtml + "<br>");
 }
}


I am getting a compile error of:

Line 79: (CS0103) The name 'Suites' does not exist in the current context

Can anyone point me in the right direction.  I will include a screen shot of the DOM for the list.

Any help would be appreciated!!

 

 

Boyan Boev
Telerik team
 answered on 20 Dec 2013
6 answers
170 views
Hello,

In the OnAfterTestCompleted method, I would like to have code to open the test result file after a failure.  When the file is saved, how can I access the unique 18-digit id?  I first export the result to a network location.  Here is what I have so far:

result.ExportToResultFile("z:\\", "Smoke Test");
System.Diagnostics.Process.Start("z:\\Smoke Test 130314192986639898.aiiresult");

This opens that one specific result, however I haven't found anything in the TestResult class that I think would do the trick to get that unique ID.  Anything else I can try?

Thanks!

Mario
Telerik team
 answered on 19 Dec 2013
2 answers
58 views
Hi,
I am evaluating Telerik Test Studio,.

I notice that everytime I start a test the browser gets launched and then when the test finishes the browser closes.
Is there a way to change this behavior.
I used other tool that when I had a page already open I could start recording in it right away and it did not close my browser at the end of a tets run if I did not want.

For example, if I am just trying to figure things out I want to be able to use the current browser that is open in the page that I need without having to execute anything previously.

Other example, f I am working in a test cases and I have steps 1-3 completed, I want to be able to execute the test leave the browser open at the point that step 3 completed and the continue recording the next steps.
How can I do that?

It must be simple, but I have not found a way around it.

I am also thinking that when I complete my suite if the correct user is already up and signed in, then I dont want to restart the browser for the next test case.

Thanks for your help.
Boyan Boev
Telerik team
 answered on 19 Dec 2013
4 answers
104 views
Hi,

I am facing a problem regarding Alert Dialog. While recording, when i enter a mobile number on Mobile field textbox and click anywhere on the form an Alert Dialog Box appears. Click anywhere is recorded on telerik as Click 'Div'. But when i run the same test and when it reaches on Click 'Div' it fails. Telerik unable to find the Click 'Div'.

NOTE: Alert Dialog appears after i click anywhere on the form.

I have attached the failure info also.

Failure Information: 
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using 
Find logic 
 (Html): [TagIndex 'Exact' div:62]

Unable to locate element. Search failed!

Learn more about finding elements here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx

Waiting for your response
Alan
Top achievements
Rank 2
 answered on 18 Dec 2013
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?