Telerik Forums
Test Studio Forum
5 answers
330 views
While recording in IE9 with the latest Test Studio update (2013.2.1327), clicking the "Back" button records as a test step, but it fails the step when running the automated test. Does automation not work with browser actions such as this?

To counteract this problem, I simply tried copying and pasting the previous URL and adding a test step to navigate to that page. However, this step also fails.

For more information, I am clicking on a PDF (which opens in the same tab/window) and then trying to click the back button to return to the page that I am trying to test.

Any help would be greatly appreciated.

Thanks,
Bennett
Boyan Boev
Telerik team
 answered on 11 Apr 2014
1 answer
141 views
I moved my entire project in source control and renamed it through visual studio.
Now I'm opening the project in source control with standalone test studio.
Everything seems fine, except Test Lists and Results. Every time I click those tab, It's says 'Communicating with source control...' after that I get following error message for every test list.
---------------------------
Telerik - Test Studio
---------------------------
Unable to load test list 'C:\TestStudioProject\SCRUM Training\TestLists\lt.aiilist'! Please try loading the project again.
---------------------------
OK   
---------------------------
Ivaylo
Telerik team
 answered on 11 Apr 2014
1 answer
89 views
When running a load test what html status code are counted in the http errors per second counter? Also, is there any counter to track specific types of error codes? Like only the 400 Client Error codes or 500 Server Error status codes? For example I would like to know how many 302 ,304 and 500 error code happened and at what point in the test.
Ivaylo
Telerik team
 answered on 08 Apr 2014
1 answer
122 views
Hello,
I've recently put some tests on Jenkins to run after a project builds.  The odd thing is that even if 1 test fails the build simply continues to move on to the next test regardless of the results of the previous.

Is there a way for the build to immediately stop if any failure is detected?  So that any issues can be dealt with at a quicker pace.

Ivaylo
Telerik team
 answered on 07 Apr 2014
4 answers
124 views
My project has a shared test-as-step that each of my other tests call.  This test-as-step has the following override that is attempting to use properties of the testresult parent/calling test name to add to the custom log we've created:

public override void OnAfterTestCompleted(TestResult result)
{
base.OnAfterTestCompleted(result);

string parentName = Convert.ToString(result.Parent.Name); //line 103
string parentId = Convert.ToString(result.Parent.Id);
string parentRootName = Convert.ToString(result.Parent.RootName);
string fileName = Convert.ToString(result.Parent.FileName);

\\custom code to write to the log
}

Each line in the above override that references the testresult.parent.* properties test trigger the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
   at CIS.TestStudio.WebAccess.Shared.Handler.OnAfterTestCompleted(TestResult result) in c:\tfs\CoreCM\Root\CIS.TestStudio.WebAccess\Shared\Handler.tstest.cs:line 103
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance, Boolean isDataDriven)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteDataDrivenTest(Test test, BaseWebAiiTest codeInstance)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(Test test)

If this is not the correct way to access the name of the parent/calling test properties, is there a better way to do so through code?
Cody
Telerik team
 answered on 07 Apr 2014
1 answer
58 views
Last year, I saw there was a beta release.  I did not personally try the beta, but I would have if I had known the final release gave me several headaches after its release. 

Cody
Telerik team
 answered on 04 Apr 2014
6 answers
245 views
I am working on a project that is requiring lots of coded steps for various reason.  The coded steps are failing intermittently because they are processing too quickly.  I have added numerous wait.forexists() and wait.fornomotion() throughout, but they don't seem to do what I need.  If I add sleeps throughout, it works, but this is a bad solution.  

The specific scenario I'm having trouble with is after logging in, a grid is created with dynamic header values.  I'm selecting a value from the grid based on a value in one of the dynamic columns.  First step is to find location of the proper column by searching through all headercells to find the matching column index.  The issue I'm running into is the following lines of code executing before the radgridview is fully loaded resulting in a zero column count being returned:

public int globalTimeout = 10000;

public void login()
{
Pages.TestPage.SilverlightApp.LoginButton.User.Click();
Pages.TestPage.SilverlightApp.LoginPage.Wait.ForExistsNot(globalTimeout);
Pages.TestPage.SilverlightApp.HomePage.Wait.ForExists(globalTimeout);
Pages.TestPage.SilverlightApp.HomePage.Wait.ForNoMotion(globalTimeout);
}
public int findColumn(string value)
{
RadGridView grid = new RadGridView();
//if I add a System.Threading.Thread.Sleep(10000) before this grid is initialized, it works every time, if I don't, I randomly get a zero count of headerCells even though they exist
grid = Pages.TestPage.SilverLightApp.Test_RadGridView;

//If I add a grid.Wait.ForExists(10000) here, it still moves to the next line almost instantly as the grid exists but the data doesn't necessarily exist yet
 //If I add a grid.Wait.ForNoMotion(10000) here, it still doesn't seem to matter

int cols = grid.HeaderRow.HeaderCells.Count;

Assert.IsTrue(cols != 0, "No header columns were found.");
//code code code
return columnNumber;
}

Any suggestions on how to better handle (through code!) the wait for radgridview to populate/ready for indexing? 
Cody
Telerik team
 answered on 02 Apr 2014
3 answers
132 views
Hi !!

First of all I have to say I don't speak english very well so sorry if you don't understand exactly what I want to say. I'll try to explain myself as well as I can.

I have seen in other discussion something about load testing, and now I'm looking for some information about that for my job. I would like to know if there is an ideal response time for logging tests. For example, I'm trying to logging in an app with 100 users at the same time, and I don't know if one second of response for each user could be considered a good response time. Is there any 'rule' for that?

Thanks and I hope you could understand me.

Regards.

Chris.
Ivaylo
Telerik team
 answered on 02 Apr 2014
1 answer
168 views
I am farily new to using Test Studio and am curious as to how I can validate when a new row of data is added to a grid in my Java application.

The application consists of two panes.  The left pane is a data grid and the right pane is for data entry.  I enter data in the right pane and click "Save."  This creates a new row in the left pane.  How do I validate that the new row has been added to the grid in the left pane and then validate the values in the cells of that new row?

Any help would be great appreciated :)

Thanks.

Chris
Cody
Telerik team
 answered on 01 Apr 2014
3 answers
79 views
I am relatively new to test studio and i am trying to store a collection of links that i get from Find.AllByAttributes("id=
~linktext");

Then the idea is to click one from the list. Currently i am trying this code to get the last:

HtmlAnchor dellink= alllinks.Last();
dellink.Click();

I am having issues on creating the list containing the elements and then casting the link into the
HtmlAnchor... Any ideas?

Thanks and Regards.
Boyan Boev
Telerik team
 answered on 01 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?