Telerik Forums
Test Studio Forum
5 answers
195 views
Hi,

I am trying to create an object for dynamically generated HtmlInputText and HtmlButton using HTML find expression by providing the following properties of the element - id, Tagname, name and Xpath, but the element is not getting identified, getting element not found error.

- The text and button object that needs to be identified is available in one of the Cell in Table (Rows in the table gets dynamically added based on user input).

Please provide the solution for identifying these dynamic objects using Telerik asap.

Thanks,
Vijula
Vijula
Top achievements
Rank 1
 answered on 05 Sep 2013
3 answers
135 views
Dear all,

I'm currently having a couple of questions with using custom code-behind code and the related process in getting it to run with MSTest.

First of all: having a normal Test Studio project, purely created with the built-in features, I can commit it to Git, and run it on TeamCity by doing mstest /testcontainer:.\foobar.tstest

But, as soon as we have custom code-behind we run into the following issues:

You need to export from Test Studio to Visual Studio. This is a one way, one time operation, meaning changes in folder structure and adding new tests are not reflected in the csproj. Worse, we cannot export again since the Studio tells me: hey, the csproj is already there. <full stop>. I need to go on disk, delete the csproj and regenerate it through Test Studio.

Second: when we change the folder structure inside an exported csproj, for example:

<root>
- foo.tstest
- bar.tstest
- baz.tstest



Say foo.tstest is a 'shared' test, thus we want to put it into a folder, we create a new folder and move the foo.tstest there:

<root>
- Shared
   - foo.tstest
- bar.tstest
- baz.tstest

This causes the project to fail at runtime when we run bar.tstest or baz.tstest since their internal reference to foo.tstest doesn't get updated. Only way to mitigate this is opening each test in Visual Studio and saving it again, or opening the project in Test Studio and then closing it again (which seems to detect the movement).

Both of these things are quite cumbersome if we want to use MSTest to run our tests.

Am I not using the correct options to mitigate this problems?

Thanks,

-Kristof
Cody
Telerik team
 answered on 04 Sep 2013
4 answers
208 views
Hello,

I'm trying to automate the testing for a Silverlight application but I'm a bit stuck.
There's a DataGrid that needs a new entry. 

First, I press a button which adds a new row to the DataGrid.
Then I try to locate the first new cell in this row and enter a value but it doesn't always find this new cell.

Any idea on how to fix this or to approach this from a different angle?

Kind regards,
Kristof.
Cody
Telerik team
 answered on 04 Sep 2013
1 answer
110 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
376 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
102 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
566 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
71 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
104 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
106 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?