Telerik Forums
Test Studio Forum
1 answer
81 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
3 answers
201 views
I have a silverlight application and as I start recording steps, I can see the "Detect Silverlight " screen, so I think it should have noticed that I have not just a HTML webpage.

I can record steps as normal, but sometimes (I cannot say when during the recording) it does not record steps like typing text in a Textbox. It seems, that it does not get the element or something.
I stop the record and start it again for sometimes.
Somehow it is working again, but haven't done anything in between to get the connection stable.

Can you tell me what I can do, that Telerik Test Studio notices all my steps or what can I check, what is maybe wrong, when a step is not beeing recorded?

Best regards,
Adriane
Ivaylo
Telerik team
 answered on 07 Aug 2012
1 answer
45 views
Hello,

I have a spreadsheet with 265 columns but when I run the test I get the message:

Exception thrown executing coded step: '[PO_Indicators_CodedStep_Check90pctStrokeUnitPOIndicator] : Verify attribute 'class' on 'ind90pctStrokeUnit' indicator'. InnerException: System.ArgumentException: The extracted variable 's90pctStrokeUnitIndicator' does not exist in the store. Make sure there is an extract step that has executed before executing this step. at ArtOfTest.Common.Design.Extensibility.ExtractionDataStore.GetValue(String name) at ArtOfTest.WebAii.Design.BaseWebAiiTest.TestData.get_Item(String column) 

When I look in the setup binding I only get data up to column 255 wheras if I edit the data source all data up to 265 is displayed. Please can this be extended?

Regards,
David
Anthony
Telerik team
 answered on 03 Aug 2012
3 answers
65 views
Hello,

We have one Video player which is used in sliver light web application and we want to test on it using Test studio.
But We are not able to run video while Test studio is running, even we are not able to click on Play/Pause buttons.

on our website with out Test studio this video player is working fine. 
so can any one give us advice how we can test our video player with test studio?

Thank You,
Gunjan   
Anthony
Telerik team
 answered on 03 Aug 2012
4 answers
142 views
Hi,

I have a exported telerik Tests from Test Studio into Visual Studio, but I cannot run the tests.In Test Studio, they run, in Visual Studio, the same test gave the message following.
Can yomeone tell me, what I have to to in Visual Studio to run the tests?

------------------------------------------------------------
'01.08.2012 10:02:53' - Using .Net Runtime version: '4.0.30319.269' for tests execution.
'01.08.2012 10:02:53' - Starting execution....
'01.08.2012 10:02:53' - Detected a Silverlight Test. Setting EnableSilverlight=True
'01.08.2012 10:02:53' - Failure detected during execution. Details:
------------------------------------------------------------
'01.08.2012 10:02:53' - System.ApplicationException: Exception thrown attempting to launch Silverlight application. Please make sure Silverlight is properly installed and you are able to launch it. ---> System.ArgumentException: Invalid path to Out-Of-Browser application: http://dmm-vm-prod/MediaCenterTRANS/
   at ArtOfTest.WebAii.BrowserSpecialized.SilverlightOutOfBrowser.SilverlightOutOfBrowserActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String arguments, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.SilverlightOutOfBrowser.SilverlightOutOfBrowserActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String arguments, String pipename)
   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)
------------------------------------------------------------
'01.08.2012 10:02:53' - Test completed!

 

Adriane
Top achievements
Rank 1
 answered on 03 Aug 2012
4 answers
84 views
Hello,

We want to use Test Studio or other tool for automated testing, but before we decide we have some questions.
Does the application has any of the below functionalities:
- email alert (I saw this was an option for some test but how about performance test, load test ... )
- can we use multiple users to run tests in the same time? How many?
- can we run scripts in the beginning/middle/end of the test?
- can we simulate response from an address that is unavailable from testing server? (Let's say the application calls an internet service and the test  server does not have internet access would be good if we simulate a response)
Byron
Telerik team
 answered on 02 Aug 2012
1 answer
220 views
Hi,

I'd like to know what is the difference between "Test Studio" and "Test Studio Express" packages. Because in the support and the licencing pages, the are listed as two differents products.

Regards,

Gladys
Cody
Telerik team
 answered on 02 Aug 2012
1 answer
46 views
Hi Team,
i want to execute my test script on a specific firefox browser, which means i need to launch a firefox browser with a profile. like in selenium, we may use "new firefox(firefox profile path)" to new a firefox. Does our test studio support that? My version is 2012.1.719.0.
Byron
Telerik team
 answered on 01 Aug 2012
4 answers
89 views
Hi,

Is there a way to check a website for specific words? For example, when I receive an 'Unexpected Error' on the page, I can still navigate through the toolbar and therefore, the test passes.

What I am looking to do is to fail the test if the words 'Unexpected Error' displays on the page.

Could anyone help with this?


Thanks
eugene
Top achievements
Rank 1
 answered on 31 Jul 2012
1 answer
60 views
Hi
Currently, I use customized code to find object
But on firefox , I can not find it. I see log file, count of htmlCollection =0
 public void DeleteSheet_CodedStep()
        {
            object sheetName = GetExtractedValue("SheetName");
             
            Assert.IsNotNull(sheetName, "variable SheetName on calling method is not defined");
             
            string sheetNameString =  (sheetName as string).Trim();
             
            Log.WriteLine(string.Format("{0} variable is defined", sheetNameString));     
             
            sheetNameString = Utility.HandleLongString(sheetNameString);
            
            Log.WriteLine(sheetNameString);
            
            sheetNameString = Utility.HtmlEncode(sheetNameString);
            
            Log.WriteLine(sheetNameString);   
            
            HtmlDiv htmlDiv = Find.ById<HtmlDiv>("dnn_ctr431_ViewMediaResource_UP");  
            
            Log.WriteLine("htmlDiv"+htmlDiv);
            
            //Add find on firefox until find out result
   /*         if (ActiveBrowser.BrowserType == BrowserType.FireFox || ActiveBrowser.BrowserType == BrowserType.Chrome )
            {
                while (htmlDiv == null)
                {
                    ActiveBrowser.RefreshDomTree();
                    htmlDiv = Find.ById<HtmlDiv>("dnn_ctr431_ViewMediaResource_UP");
                }
            }
    */
            
            IList<HtmlDiv> htmlDivsCollection = htmlDiv.Find.AllByAttributes<HtmlDiv>("class=body-component");

    /*        if (ActiveBrowser.BrowserType == BrowserType.FireFox )
            {
                while (htmlDivsCollection.Count() == 0)
                {
                    ActiveBrowser.RefreshDomTree();
                    htmlDivsCollection = htmlDiv.Find.AllByAttributes<HtmlDiv>("class=body-component");
                }
            }
    */
            
            Log.WriteLine(string.Format("{0} html div count found", htmlDivsCollection.Count.ToString()));
            
            foreach(HtmlDiv listItem in htmlDivsCollection)
            {
                IList<HtmlDiv> contentColletion = listItem.Find.AllByAttributes<HtmlDiv>("class=body-component-content");
                
                Log.WriteLine(contentColletion[0].TextContent);
                
                if (String.Compare(sheetNameString, contentColletion[0].TextContent) == 0)
                {
                    Log.WriteLine("mediaSheet found");
                    
                    IList<HtmlControl> default_sheet = listItem.Find.AllByAttributes<HtmlControl>("class=body-component-menu-delete");
               
                    if(default_sheet != null && default_sheet.Count > 0)
                    {
                        Log.WriteLine(string.Format("language tile object {0} deleted", sheetNameString));
                        listItem.MouseHover();
                        default_sheet[0].MouseClick();
                    }
                    
                    break;
                } 
Please refer attachment
Thanks so much
Stoich
Telerik team
 answered on 30 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?