Telerik Forums
Test Studio Forum
11 answers
353 views
Hi - I am currently evaluating WebUI QA edition. I am able to record tests, but I am unable to get achieve playback. I receive the following error:

'3/1/2011 10:46:47 PM' - Error launching the runner. Error: System.TimeoutException: The operation has timed out.  
    at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)  
    at ArtOfTest.WebAii.Design.Execution.RunnerController.Launch(Int32 waitForReadyTimeout, String pathToRunner, Int32& runnerProcId)


I have referenced another thread regarding this same error, but the steps outlined in that thread did not help the problem.
 (Changed "Network access: Restrict anonymous access to Named Pipes and Shares" from Enabled to Disabled - did not work)
 
I have WebUI installed on a VM running Windows Server 2003 R2 with Internet Explorer 8

I appreciate any help you can provide - this is a frustrating roadblock since I cannot proceed with testing until it is alleviated.

Thanks again.

Byron
Telerik team
 answered on 17 May 2012
8 answers
1.8K+ views
Hi,
   telerik team

  When I verified  a cell's value in a datagrid  with pagination, I failed to get all the pages row count but only the current page.
  It seems the 'grid.Rows.Count' just get the current page row count, 5 here.
  And I want to get all the 7 pages row count, how can I to realize this? Reminder, the records on the last page,Page 7, may be less than 5.
  And the values I verified ('test for comment26') is indeed on the 1st page, even though, it failed.

  Attachment the screenshot and my coded step fails below, and hope they help.

  Thanks in advance and have a nice weekend.


//Get the data grid.
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
DataGrid grid = app.Find.ByAutomationId<DataGrid>("RelatedCommentsDataGrid");
 
int r = grid.Rows.Count;

List<string> list = new List<string>();
 
//Place the TextBlock content of the comment subject cell from each row into the string list.

for (int i = 0; i < r; i++)
{
   DataGridRow row = grid.Rows[i];
   DataGridCell cell = row.Cells[2];   
   list.Add(cell.TextBlockContent);
   Log.WriteLine(cell.TextBlockContent);
}

//Get the created comment subject
object createdComment = GetExtractedValue("CommentSubject");

//Compare the created comment subject to the list and determine if it created successfully.
for (int j = 0; j < list.Count; j++)
{
   if (j+1 == list.Count)
   {
      break;
   }
    else
   {
    if (createdComment.Equals(list[j])){
        Log.WriteLine(createdComment+"is created successfully");
    }
    else{
        Log.WriteLine(createdComment+"fails to created" );
    }

  }
}

 



Plamen
Telerik team
 answered on 17 May 2012
1 answer
120 views
Hello,

I've read in the following blog post that you support recording on Firefox 2+, IE 7+, Safari 5+, Chrome 7+ 
http://blogs.globallogic.com/net-web-test-automation-selenium-vs-telerik%E2%80%99s-test-studio 

I am working with the trial version for now,
and I can only record from IE. why?

How can I change it?

Thanks,
Yohai
Plamen
Telerik team
 answered on 17 May 2012
3 answers
87 views
I have an calendar web app that gives the user an RSS page / XML page of today's events. I want to verify that data, but I'm not sure how to get the XML page as as element to read the data.

Here is an example of the XML page:
<?xml version="1.0" encoding="iso-8859-1"?><event><item><title>PROD-1464</title><date>Thursday, April 26, 2012</date><time /><enddate>Saturday, May 26, 2012</enddate><description /><location>Centerville Room 5</location><library>Centerville Library</library><link></link></item><item><title>Ongoing Event</title><date>Wednesday, May 09, 2012</date><time /><enddate>Thursday, May 31, 2012</enddate><description /><location>Centerville Room 5</location><library>Centerville Library</library><link></link></item><item><title>Automation Weekly Recurring Event</title><date>Tuesday, May 15, 2012</date><time>1:00 PM</time><enddate /><description /><location>Centerville Room 4</location><library>Centerville Library</library><link></link></item></event>




Byron
Telerik team
 answered on 16 May 2012
3 answers
131 views

 Hi,

 I tried record & playback for a "Create" screen. All the step runs fine but at the last when the "Save" button is clicked after the data is entered, the page is been redirected to error page. Initially i thought there might be some problem with the network. So i tried to create a new contact manually & it got saved without any error. I used the same test data which i have given in the "Test" in the test studio. I'm not pretty much sure about the issue. Kindly help me in resolving this issue.

Thanks,
Deepa.C
Plamen
Telerik team
 answered on 16 May 2012
2 answers
210 views
Hi Telerik Team,

I am getting below error while inserting text textbox in FF but same code is working fine with IE.

Target '[Element: 'iframe:0'' is not a supported element to set text to. at ArtOfTest.WebAii.Core.Actions.SetText(Element targetElement, String text) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SetTextActionDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

What could be the reason?

Plamen
Telerik team
 answered on 16 May 2012
5 answers
165 views
Hi,

How can we send from local database (for testing data) a value to our bind t-sql param?

sample:

If this is my local db: (column name is TempMachineName)
Machine1
Machine2

select Id from [ActiveMachines] where Name = '$(TempMachineName)'

and then to use the scalar value for some locator on DOM element

Thanks,
Yohai 



Cody
Telerik team
 answered on 14 May 2012
3 answers
212 views
I was wondering if anyone knows a way to hook into an already running application to do records?

The issue that we are having is that our WPF application is launched via click-once, that requires a URI to launch the app.  I am able to navigate to the webpage that hosts the launcher, and launch the app, but I do not know a way to hook into the running version without having test studio try and launch a new version of the app (if that makes sense)

Any input would be helpful.

Thanks.
Anthony
Telerik team
 answered on 14 May 2012
1 answer
93 views
Hi all,

I'm new to telerik test studio. Kindly help me in providing the documentation or any tutorial so i can understand it & start to work on it as we have decided use this tool for automation.

Thanks & Regards,
Deepa.C
Anthony
Telerik team
 answered on 14 May 2012
3 answers
181 views
I'm using TestStudio Standalone Version, and I've created my own extension of BaseWebAiiTest to handle some extra logging behind-the-scenes by overriding the OnBeforeTestStarted and OnAfterTestCompleted events.  Since I want all of my tests to include that extra logging info, I was wondering if there was any way to configure ArtOfTest.Runner to use my CustomBaseWebAiiTest instead of BaseWebAiiTest.

I've modified "Project Settings→Recording Options→Code Base Class" to be my CustomBaseWebAiiTest class (both with/without its full assembly name) instead of BaseWebAiiTest, but all that appears to do is allow the Recorder to recognize any such classes as being associated with Tests.

On a side-note, when I go to add a Coded Step to a Test that does not yet have a code-behind class, it still creates that code-behind class as an extension of BaseWebAiiTest by default.  If I've modified the "Code Base Class" at all, then that extension needs to be manually changed to "CustomBaseWebAiiTest" outside of TestStudio to match the "Code Base Class"; otherwise it's unusable.  As such, I'd like to report that as a bug, since any code-behind files that TestStudio generates should match its current "Code Base Class".

Moving back on topic, the only way that I appear to be able to make tests use my CustomBaseWebAiiTest class it to explicitly create a code-behind class for each one of them which is an extension of said class.  My issue with that approach is that it means I'll be creating an essentially empty code-behind class for every single test that I have, which seems entirely unecessary and will add a lot of extra clutter to my Test Project.

All this having been said, is there any way that I can configure ArtOfTest.Runner to use whatever my "Code Base Class" is instead of always using BaseWebAiiTest by default?  If this is not currently possible, then I'd like to request it as an feature for TestStudio Standalone Version.

-Max
Anthony
Telerik team
 answered on 11 May 2012
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?