Telerik Forums
Test Studio Forum
4 answers
144 views
Hi,

I tried searching through the help documentation and I may have found what I am looking for, but I'm not too sure.

I want to verify data between multiple pages where the data continually changes, i.e. on a daily, weekly, monthly basis.

My steps would be as follows:
1. Open said page
2. Verify said number
3. Click said number to progress to next page
4. On next page verify said number matches the previous page

Now, these number will constantly be changing (but should always match) so I want to create a test where it will pass if the numbers match, and fail if the numbers don't, and I wouldn't have to manually update the test every time the numbers change.

The test I created was;
1. Open said page
2. Extract 'TextContent' on 'x526Link' into DataBindVariable $(x526Link)  
3. IF (Verify 'TextContent' 'Contains' '526' on 'x526Link') THEN
  • 4. Click 'x526Link'
5. Extract 'TextContent' on 'WeFound526PTag' into DataBindVariable $(WeFound526PTag)
6. Verify 'TextContent' 'Contains' 'We found 526 brands  that ran on all the pages between 1/1/2007 and 5/31/2012.' on 'WeFound526PTag'
7. ELSE


If anyone could lead me in the right direction/provide me with the necessary steps that would be great.


Thanks
Byron
Telerik team
 answered on 13 Aug 2012
2 answers
137 views
I am new to Test Studio.  Trying to evaluate for our upcoming silverlight project.
I created Data Sources (excel) for the project.  I have a "Web Test" that I am trying to "Bind Test" .  When I click "Bind Test", it opens "Bind Test to Data Source" dialog box...but when I try to click the "Select Data Source" drop down...nothing displays..it blinks and turns orange color...
Padma
Top achievements
Rank 1
 answered on 10 Aug 2012
5 answers
119 views
I have a Silverlight Application and set a SilverlightApplication WebURL in the Out-of-browser Options, but use it in browser.
For different systems, I want to migrate the tests, so I have to change the URL via script.

I want to know in which file this webURL is stored in the filesystem, so that I can change it before running the test, if we take the test to another system.

Best rergards,
Adriane
Byron
Telerik team
 answered on 09 Aug 2012
1 answer
102 views

When pasting the sample code from the demo code, I see the following error:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/table-search-and-paging.aspx


Exception thrown executing coded step: '[Row_Index] : @"Indxing through Active'.
InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
   at PortalC_Sharp.ExpDate_Extract.Row_Index() in C:\MyProjects\PortalC_Sharp\ExpDates\ExpDate Extract.tstest.cs:line 119
------------------------------------------------------------
'8/8/2012 9:23:57 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

Error 1 The type 'PortalC_Sharp.ExpDates.HtmlTable' cannot be used as type parameter 'TControl' in the generic type or method 'ArtOfTest.WebAii.Core.Find.ByExpression<TControl>(params string[])'. There is no implicit reference conversion from 'PortalC_Sharp.ExpDates.HtmlTable' to 'ArtOfTest.WebAii.Controls.Control'. C:\MyProjects\PortalC_Sharp\ExpDates\HtmlTable.tstest.cs 76 31 PortalC_Sharp

Code Entered:

HtmlTable table = Find.ByExpression<HtmlTable>("id=Grid", "|", "tagIndex=table:1");
HtmlSpan next = Find.ByExpression<HtmlSpan>("class=t-icon t-arrow-next");
HtmlAnchor a = Find.ByExpression<HtmlAnchor>("href=/aspnet-mvc/Grid?ajax=True&Grid-page=2");



Jasper
Telerik team
 answered on 09 Aug 2012
1 answer
111 views
Hi there,

I've noticed with Test Studio that there is no notification to the user that there are updates available (from what I can see?).  Perhaps having a notification on startup or under Help -> Check for updates would be handy with a simple box like "your version is xxx, latest version is xxx" with a button to directly download the latest version if you don't already have it would be good.

Also, a quick version check when linking a main version to a runtime would be handy too, to see if the runtime and main program versions match, with a prompt of version mismatch if they don't.  I think a small feature like this would really benefit end users.

Also, in the help section, maybe a "News" button near the "About" key where a user can click and see a small RSS feed of news relating to test studio would be handy too!

Thanks

Colin
Ivaylo
Telerik team
 answered on 09 Aug 2012
3 answers
70 views
Hi
I am finding HtmlTable on IE 9. But it is always null
I checked , table is existence at finding step
Could you help me?
Please refer attachment
Thanks
Ivaylo
Telerik team
 answered on 09 Aug 2012
1 answer
135 views
Hello Telerik
                   i had tried to perform the Load testing and followed all the steps provided in the User guide,but i am unable to perform the Load testing it is not giving the results and the report of the Load testing and it is also giving me the error while i am connecting by specifying the IP address of the particular machine where we will get the result of the same,can you provide me the solution or the steps to follow the Load testing and to get properly started with the Load Testing with the help of the user Guide i am failing to do so.
                    Please provide a solution on this i will really appreciate the if i get all the load test result with the proper report.


Regards

Prasad
Stoich
Telerik team
 answered on 08 Aug 2012
1 answer
91 views
Hi
On IE9 browser
I find by element  but it is not success.
(It succeed on firefox)
allrow = 0
Please refer attachment
****
Element containerElment = Find.ById("tblFunction");
            if(containerElment == null) throw new Exception("Can't find tblFunction");        
            
            Element tBodyContainer = containerElment.Children[0];
            Log.WriteLine("tBodyContainer : " + tBodyContainer.ToString());
            
            List<Element> allRow = tBodyContainer.Children.ToList(); // All TR items
            Log.WriteLine("All rows count : " +allRow.Count);
           
Stoich
Telerik team
 answered on 08 Aug 2012
1 answer
121 views

Hi
My browser: IE9.
Case 1: When finding by class on IE9. Return value is 0. I don't know why? Please refer attachment
could you help me?
****************************************************
ActiveBrowser.RefreshDomTree();
HtmlDiv htmlDivMedia = Find.ById<HtmlDiv>("dnn_ctr431_ViewMediaResource_UP");
IList<HtmlListItem> htmlListEnclosure = htmlDivMedia.Find.AllByAttributes<HtmlListItem>("class=body-module");
Log.WriteLine("Enclosure: " + htmlListEnclosure.Count.ToString());
IList<HtmlListItem> htmlListContent = htmlListEnclosure[1].Find.AllByAttributes<HtmlListItem>("class=body-component-content");
Log.WriteLine("Content: " + htmlListContent.Count.ToString());
foreach ( HtmlListItem items in htmlListContent)
{
    Log.WriteLine("Physical name: " + items.TextContent.ToString());
    if (items.TextContent.ToString() == physicalNameString)
        items.MouseClick();
        
}
******************************************************
Thanks
Stoich
Telerik team
 answered on 08 Aug 2012
1 answer
106 views
Sorry for the cross-posting. I noticed this one is much more popuar then the express forum

I was unsure if I should post this in the testing forum or the RadGridView forum.

It is regarding Automated testing but more of a general question since our testers have decided to go with the IBM Rational Functional Tester (RFT) 8.2.2.  since they test various types of apps- WPF, Web etc.

Ours is a WPF app using Telerik WPF controls and Prism.
 Our testers have told us that they cannot select specific rows in a grid because the RadGrid rows do not have any unique attributes like UID or name.
I verified that using Snoop and the IBM rational tool built into the testing tool which gives similar results to snoop.
I use the RadGrid as an example but the same problem applies to other controls like RadTree for example.
Since the grid rows are created at runtime, the GridRows do not contain the unique attributes to help the automated testing tool locate a row with specif text.

So the question is who's problem is this?
What I mean by that is do we fix it on the code side or expect the testers to figure out a way to do it on their side?
I think we could fix it on the code side but before we do, (and possibly slow down the grid loading a bit) we want to ensure that that is the correct approach or do we leave it in the hands of the testers to worry about.

On the code side I assume (unless theres a better way) to wait for the grid to finish loading and then run a method that iterates the rows/columns and adds a Name (or UID) attribute to each row with text from column X. So for example Row 1 would end up with Name="Bob Smith" taken from the Full Name column in the grid. Then the automated testing tool could find the row based on the name attribute.

I don't know the IBM automated tool capabilities but I would think that it (and all testing tools) should be able to do a similar thing to locate a row from the tool itself.

Comments???

PS:

This DOES work:

 

 

Private Sub UserSearch_DataGrid_RowLoaded(sender As Object, e As Telerik.Windows.Controls.GridView.RowLoadedEventArgs) Handles UserSearch_DataGrid.RowLoaded

 

 

 

' for automation testing add the UID prop based on the first column

 

 

 

If TypeOf (e.Row) Is GridViewRow Then e.Row.Uid = e.Row.Cells(0).Content.text

 

 

 

End Sub

 


Cody
Telerik team
 answered on 07 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?