Telerik Forums
Test Studio Forum
1 answer
86 views
Hi Support Team,

I am using WebAii testing framework(V 2012.2.1420.0), Using Visual studio test explorer to run my automated test cases.
Followed below steps to run the test cases in RUN mode:

1) In local.testsettings file > Test Timeouts tab > set 2mins for indivisual test execution field and unselect checkbox for total execution time field

2) Created a test list of say 5 test cases in VS2012

3) First test will abort after 2 minutes. (as it reached time out)

5) Second test will start notice that the browser hangs and user can't logon and test aborts after two minutes

6) Step 5 is repeats for all test cases

Plase assist me on this. why browser is hanging from second test cases execution?

Using IE9(v 9.0.8112.16421)

Thanks,
Hari


Velin Koychev
Telerik team
 answered on 02 Sep 2013
1 answer
494 views
Hi Telerik team,

I want to write the data in particular worksheet in excel.
I am using following code in test script.

string myPath = @"C:\Users\priyanka.kadam\Desktop\Automation_excel\Data_Driven_Test.xlsx";
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook workbook = excelApp.Workbooks.Open(mypath);

Data_Driven_Test.xlsx is excel in which i have data in Patient_Select, SSN_Duplicate and MRN_Duplicate worksheets.
I want to write the data in SSN_Duplicate. For that i am using following path and then pass that string to open excel
string myPath = @"C:\Users\priyanka.kadam\Desktop\Automation_excel\Data_Driven_Test.xlsx[SSN_Duplicate]]"

Getting following error.

'8/29/2013 11:51:22 AM' - 'Fail' : 9. [SSN_Duplicate_CodedStep] : New Coded Step
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[SSN_Duplicate_CodedStep] : New Coded Step'.
InnerException:
System.Runtime.InteropServices.COMException (0x800A03EC): 'C:\Users\priyanka.kadam\Desktop\Automation_excel\Data_Driven_Test.xlsx[SSN_Duplicate].xlsx' could not be found. Check the spelling of the file name, and verify that the file location is correct.

So tell me, how can i pass the particular worksheet name in file path.
Velin Koychev
Telerik team
 answered on 02 Sep 2013
1 answer
64 views

We have the Telerik trial version downloaded ..Version 2013.1.806.0

Our application mainly intended to work with the Chrome browser...Right now works only with Chrome.
When I tried recording on the Chrome, no steps are recorded. I used the navigation bar to navigate to the page and then made some actions on the page. The script was not added for any action.

Things which were recorded were,
the navigation to the page and
and when i inserted the Verification point (like ...Verify object exist), that is added to the script. But none of the actions on the page were recorded.

I verified the chrome browser setting as per the Telerik doc. Do I miss any configuration or steps?

Your help is appreciated!
Boyan Boev
Telerik team
 answered on 02 Sep 2013
1 answer
82 views
I've got a virtual PC on which I've installed Runtime, and used it as a remote execution server. But, that virtual PC has now been deleted - so is there any way of removing it from the scheduling server's list of Execution Machines?

Execution machines
 
Active     Name        Operating System                                  Service Uri
--------------------------------------------------------------------------------------------------------------
No       | ie7vista  | Microsoft Windows NT 6.0.6002 Service Pack 2   |  http://ie7vista:55555/              |
Yes      | mainpc    | Microsoft Windows NT 6.1.7601 Service Pack 1   |  http://mainpc.mycompany.com:55555/  |
No       | ie9win7   | Microsoft Windows NT 6.1.7601 Service Pack 1   |  http://ie9win7:55555/               |

In the Execution machines dialog, there's only a Close button, with no options to edit/remove entries in the list.

P.S. In the knowledge base, there's an article titled Unregister execution server, but it is about a quite different topic (registering a machine as an execution server which has previously also had a scheduling server configuration).
Velin Koychev
Telerik team
 answered on 02 Sep 2013
5 answers
94 views
I am on version 2012.2.1022.0.  The download dialog in IE9 is causing me issues and I need to either save as or cancel.

I have read other threads related to this issue and the solutions don't seem to help.  DownloadDialogsHandler does not seem to be recognized for me in Telerik. 

I have tried inserting this code in a custom script:

ArtOfTest.WebAii.Win32.Dialogs.DownloadDialogsHandler downloadDialog = new DownloadDialogsHandler(ActiveBrowser,
DialogButton.SAVE, "C:\\PQZHoldings.csv", Manager.Desktop);
   
HtmlAnchor a =    Find.ByExpression<ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor>("id=ctl00_MainPageLeft_MainPageContent_ExportHoldings1_LinkButton1", "tagname=a");
   
a.Click(false);
   
downloadDialog.WaitUntilHandled(10000);

When this is inserted, I receive the following error:
 Line 92: (CS0246) The type or namespace name 'DownloadDialogsHandler' could not be found (are you missing a using directive or an assembly reference?)
Line 93: (CS0103) The name 'DialogButton' does not exist in the current context

From what I have read in the forums, I thought this was built in to telerik.  Do I need an assembly?

Thanks,

Jonathan

Mario
Telerik team
 answered on 30 Aug 2013
16 answers
311 views
Hi,

I created a new WPF test in the latest test studio version (2013.1.806) and clicked Record. The application opens but test studio never launches the recorder. Here is the video of it http://screencast.com/t/8dlSLTsNi

I have also attached the log file.

Regards,
Kiran
Boyan Boev
Telerik team
 answered on 30 Aug 2013
1 answer
126 views

Hi, I’m wondering if there’s someone who could offer me some help on a small problem which I’ve been having.

My companies’ software uses an auto-complete feature on a lot of the fields where an option must be selected from the list to continue/populate information, example of which is below:



Now, depending on where I click on this drop down list the element added is either something like this:

 


 

And named ZyexStrongTag

 

Or something like this:

Named UiActiveMenuItemLink (where i've just clicked on the menu but not the company name)

 

The former will work fine enough for the company it’s intended for but I’m trying to write a more generic script that I can data bind to. However, I can’t data bind to a click action nor seem to find a way to re-target the element/action to just select any option that pops up on the auto-complete list as the element always seems bound to the text entered.

So i suppose what i'm asking is:

Is there a way to data bind to click actions? or;
How do i better target/identify my elements for these auto-complete drop-downs to be less text content specific?


I hope that makes sense and would really appreciate some guidance.

 

Thanks,

Adam

Boyan Boev
Telerik team
 answered on 30 Aug 2013
3 answers
80 views
hi
I have a problom when recording a red window , the record see the window as an "Empty Title window"
and looking for the window :

this.OwnerApplication.WaitForWindow("").Find()

and all this is autogenerited by Test Studio.

The problem I have is when more then one RadWindow is open I dont know who I turn to press a button.
another problem is that iIf in the future I'll change the name of the window its a problem because of the need to change the code again accordingly.

can you help me?

Tanks! 
Cody
Telerik team
 answered on 29 Aug 2013
2 answers
118 views
This may be a stupid question, but here goes anyway.

I have a RadGridTable element. In the Suggested Steps, I have the option of getting a 'Data' item count (or 'Virtual' or 'Selected', etc.) or the table's RowsCount.

What is the difference?
When should one or the other be used?

Thanks for your help.

Donna M Rode
Steton Technology
Donna
Top achievements
Rank 1
 answered on 29 Aug 2013
1 answer
128 views
Hi Telerik team,

I want to use one method in multiple tests of same project so for that i have create the class in namespace and create the method inside that class.
using the below link referance:-
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/utility-in-standalone.aspx

In that method, i have to write the data in excel sheet based on some condition.
For writing data to the current row i am using excelApp.Cells[Data.IterationIndex + 2 , 1] = "Pass: Record save"; 
But  i am getting following error: 
c:\Users\priyanka.kadam\Documents\Test Studio Projects\Test_Validations\Function_CheckAlert.tstest.cs: Line 48: (CS0103) The name 'Data' does not exist in the current context
c:\Users\priyanka.kadam\Documents\Test Studio Projects\Test_Validations\Function_CheckAlert.tstest.cs: Line 54: (CS0103) The name 'Data' does not exist in the current context

Please help me to resolve this problem at earliest as possible.

Thanks,

Cody
Telerik team
 answered on 27 Aug 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?