Telerik Forums
Test Studio Forum
5 answers
208 views
Sorry new to all this automation so forgive my noobness.

I have bound a csv file to my test plan which contains first names, last names, phone numbers and email addresses.  There is approximately 300000 records in the csv.  I have since created a data driven test case which requires a first name be entered into a text field.  Our system does existence checks on names numbers and email so I would like to increment the data used each time I run the test so I do not repeat names numbers and email. 

Example:

Test 1 pulls first name from row 2 (row one is header)
Test 2 pulls first name from row 3
and so forth

Is there a way to do this. I would also be interested in just generating dummy data on the fly that gets entered in the fields. 
Carl
Top achievements
Rank 1
 answered on 19 Feb 2013
2 answers
75 views
In my test, i have to click on a submit button on a pop up window which closes the pop-up window. I noticed that the button is being clicked but for some reason, Test Studio is still searching to click the button. I modified the waitonstepinterval to 30,000 millisecs but that doesn't work either. I toggled the step to continue on failure and the next step continues successfully. It looks like the control is not being returned to the application under test. How do i fix that?
Cody
Telerik team
 answered on 18 Feb 2013
1 answer
111 views
Hello,

I would like to be able to create a test project that contains a number of common tests, such as logging into our server, logging out, etc.  I'm currently calling external test code like this:
ArtOfTest.WebAii.Design.Execution.RunHelper.Test(@"c:\TestProjectDir\InvalidDataInput.tstest", @"c:\TestProjectDir\bin\debug\TestProject.dll")

So far, this works.  However, I have a few questions I need answered before I can make the most out of this functionality.

1. Calling external test code launches the test in a new browser window.  Is there a way to make external test code act within the same browser as the test that called it?

2. Can arguments be passed to an external test?

Thanks!

Nikolai
Telerik team
 answered on 18 Feb 2013
1 answer
440 views
How to Set and Get values for text boxes, check boxes, radio buttons and  Labels...

Scenario 01:-
 Need to ask very basic question. Assume in my web page there are Text boxes,Check boxes, Radio buttons and  Labels. In my code level I need to Set some values to these components. Refer the following example. I am using TestStudio Project and hope to implement code in the ''New Coded Step'' area. Please guide through code how to SET values to following fields. I do not need a Enumeration examples.
  ex: -
     TextBoxA = 'Obama'
     TextBoxB = 'Sanath'
     TextBoxC = 'Mike'   
     RadioButtonA = true
     CheckBoxA = true
     LableA = 'This is February'

Scenario 02:-
I need to GET values of above components which user is inserted.Consider this is as a different case. I am using TestStudio Project and hope to implement code in the ''New Coded Step'' area. Please guide through code how to GET values to following fields. I do not need a Enumeration examples. Please refer attached screenshot. That is the form which I need to GET values..


 
Boyan Boev
Telerik team
 answered on 15 Feb 2013
3 answers
114 views
Using http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/dynamic-grid.aspx i tried to automate a grid with code

HtmlTableRow containerRow =

 

null;

 

foreach

 

 

(HtmlTableRow r in Pages.EndpointClinicalPulse.LandingPageTable.AllRows)

 

{

 

 

foreach(HtmlTableCell c in r.Cells)

 

{

Log.WriteLine(

 

"Cell Found.TextContent:"+c.InnerText);

 

 

 

if(c.InnerText.Equals("Messaging_Test_Study"))

 

{

containerRow = c.Parent<HtmlTableRow>();

}

}

}

HtmlTableCell cbutton = containerRow.Cells[

 

6];

 

Log.WriteLine(cbutton.InnerText);

cbutton.ScrollToVisible();

cbutton.Click();

Issue is...cells[6] is in another table. Grid is like as shown

A B C D E F button
A1 B1 C1 D1 E1 F1 button
A2 B2 C2 D2 E2 F2 button

above is a grid which contains a table. Also "button" is further in another table

 

 

I am able to read the content of cells[6](ie text "button" is getting printed in log) but unable to click the button in cells[6]

 

Plamen
Telerik team
 answered on 14 Feb 2013
10 answers
260 views
Hi Telerik Team,

I have implemented an automated test ready, that AutomationID used to find UI elements. The test was always successful. I have the new version of Telerik test studio instaled.And now, these UI elements based on the AutomationIDs can no longer be found ( see figure). The neu Version is the Latest internal builds (2012.2.1317i). What is the Solution? can u help me please.

Thanks & Greetings
Mostafa
Boyan Boev
Telerik team
 answered on 13 Feb 2013
3 answers
129 views
How are folks tackling the developer-tester workflow from the perspective of keeping the VS project in sync?  Test Studio doesn't seem to have a project file concept in the standalone - instead relying on enumerating files within a folder.  On the other hand Visual Studio has a project file format and the tests associated with them need to be referenced.

UPDATE: I voted for a similar issue on the Public Issue Tracking System.
Cody
Telerik team
 answered on 12 Feb 2013
32 answers
581 views
Hi,

I have 2 questions about Kendo Grid, please.

1) Developers are using Kendo mvc and regular Kendo java scripts libraries.  Do I need to add any reference to those in my project, if I want to code to get the grid object, row, cells, textcontent, ect..?

2)  I'm having a problem testing a grid.  I didn't have a problem testing other similar grids; and I noticed the only different with this grid is the grid data source is using AJAX.  Is there a special way to handle it?

An example of a simple test:   

1 line of code --> KendoGrid: "Data' item count 'Equals' '4'.      (I used the tool to verify without manipulating the code).

Ran the script and was expecting it to pass, but it failed.  The log 

Exception thrown executing coded step: '[Sort_Pesonnel_and_Metrics_CodedStep1] : KendoGrid: 'Data' item count 'Equals' '4'.'.InnerException:ArtOfTest.Common.Exceptions.AssertException: Number match failed (CompareType:Equals) - [Expected:4],[Actual:1] at ArtOfTest.WebAii.Controls.BaseControlAssert`1.Assert(Boolean condition, String message, String expected, String actual, Boolean throwAssert) at ArtOfTest.WebAii.Controls.BaseControlAssert`1.AssertNumber(Int32 leftPortion, Int32 rightPortion, NumberCompareType compareType, Boolean throwOnFailure) at Telerik.TestingFramework.Controls.KendoUI.KendoControlAssert.NumberValue(String controlPropertyName, Int32 expected, NumberCompareType compareType) at Titan.WebTests.Sort_Pesonnel_and_Metrics.Sort_Pesonnel_and_Metrics_CodedStep1() in c:\Users\mpham\Desktop\Telerik\Titan.WebTests\Personnel\Sort Pesonnel and Metrics.tstest.cs:line 120

Thanks,
Mindy












Byron
Telerik team
 answered on 11 Feb 2013
2 answers
120 views
We are validating TestStudio using the Telerik Minimum Recommendations for Browser versions and OS. We have noticed that Chrome 6.0.453.1 will not execute on any OS XP, Vista, and Win 7. We are using Both Runtime and Full Versions of TestStudio to test this. Also we have noticed that if we run a test list remotely on a Machine using Chrome 6 the Results returned are Green yet the Test List was not run and a timeout failure occurred there is a copy of the Error below that is returning in the execution results. So we are seeing a couple of issues here 

Errors incurred
1. Chrome 6 fails to execute a test script regardless of OS and Version of TestStudio
2. When a Test List is run Remotely on Chrome 6 the results display as green indicating a successful run even though that run failed to configure the browser for automation there by giving a false/postive test result.

What We have tried
1. We have tried updating the Browser extension but we have the latest and greatest from Dec 4, 2012
2. We have tried to drag and drop the extension into the chrome browser with an error message dsiplaying there is no Manifest or the manifest is not readable or Invalid permissions.
3. We have tried calibration both manually and automated
4. Disabled UAC


Overall Result: NotRun
Overall Result: NotRun
------------------------------------------------------------
'2/6/2013 9:12:46 AM' - Using .Net Runtime version: '4.0.30319.296' for tests execution.
'2/6/2013 9:12:46 AM' - Starting execution....
'2/6/2013 9:13:17 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'2/6/2013 9:13:17 AM' - System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'2/6/2013 9:13:17 AM' - Test completed!
------------------------------------------------------------
'2/6/2013 9:13:18 AM' - Overall Result: NotRun
'2/6/2013 9:13:18 AM' - Duration: [0 min: 30 sec: 392 msec]
------------------------------------------------------------
------------------------------------------------------------
'2/6/2013 9:13:18 AM' - Overall Result: NotRun
'2/6/2013 9:13:18 AM' - Duration: [0 min: 30 sec: 392 msec]
------------------------------------------------------------
Josh
Top achievements
Rank 2
 answered on 11 Feb 2013
1 answer
116 views
Hi,

I am currently trying to evalute a tool, which best suits out application. The app which i am working on is a WPF.

Is it possible to record the action on the application which is already launched instead launching it thru telerik. Please do let me know.
Plamen
Telerik team
 answered on 11 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?