Telerik Forums
Test Studio Forum
1 answer
102 views
Hi,
I wanted to know if there is any way to handle browser horizontal scroll bars with test studio. In the scroll element verification I can see only Page top and bottom options. When recording the scroll, test studio adds a step something like this "Drag AnimatedCommonInnerBorderBorder to application at (1892, 971) from TopLeftCorner" which could be sensitive to different browser size, resolution etc.
What's the best way to handle this in Silverlight applications?

Thanks,
Mamata Nayak
Cody
Telerik team
 answered on 03 Sep 2013
9 answers
362 views
Hello Telerik team,
Is is possible to call the external Excel sheet which is already bind to the test in coded step??
I have to write the result Pass/Fail in currently selected row in Excel sheet based on some condition.
Steps that i performed:
1. Added excel sheet then Bind that excel sheet to the test using Data Bind option.
2. Bind the excel sheet column to the steps using Binding Property.
3. Based on the excel column, Data is inserted in that column.
4. Now, Based on the some condition, i have to write the result Pass/Fail in that same excel for that row.
   For that i have created the coded step, in which i am checking the condition and based on the Condition Pass/Fail should be write for same row.But i am not getting the currently selected rowindex from excel.

I am again trying to open the same open, so i didn't get the row number which is binded in the steps.
So is it any another way to perform this???
Please find the attached file for your ref.

Thanks,
Priyanka
Cody
Telerik team
 answered on 03 Sep 2013
1 answer
98 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
536 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
67 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
91 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
102 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
321 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
138 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
89 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
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?