Telerik Forums
Test Studio Forum
3 answers
171 views

I have a test where I'm first verifying that a button is enabled, then I click that button and it changes to a RadListBox.
I can verify that a particular item = index 1 or whatever, but I can't seem to click an item to select.

On Record, the step is added to the test:

RadListBoxItem('ctl00_ContentPlaceHolder1_lstMyTeam_i1'): '
Australia' action -> 'Select'

but on running the test it fails at this line with

'16/08/2011 2:23:46 p.m.' - 'Fail' : 7. RadListBoxItem('ctl00_ContentPlaceHolder1_lstMyTeam_i1'): 'Australia' action -> 'Select'------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~Object reference not set to an instance of an object.InnerException:System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.WebAii.Controls.Html.RadListBoxItem.Select() at Telerik.WebAii.Design.Translators.Html.ListBox.RadListBoxItemActionDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Is there anything that I need to check or any setting i need to change in order to be able to select an item in a RadListBox?

Thanks

Anthony
Telerik team
 answered on 23 May 2012
1 answer
88 views
Using trial build 2012.1.518.0 with:

QA installed on central server (Configured as Scheduling and Execution Server) with IE9, Chrome, Safari, Firefox
QA installed on VM1 with only IE7
QA installed on VM2 with only IE8

I had to use the latest internal build because the latest trial release doesn't execute Chrome 19.

I have 1 test list with a simple test that is working in all browsers.

If I schedule the test to only execute on the central server I see that the schedule gets added correctly in the results view as a yellow background.

Once the the test has successfully completed, I'd expect that when I click Results > Reload from Server the background should be green. However it stays yellow.

If I close QA and reopen on the central server and click Results > Reload from Server the background becomes green.

Is this a known bug?

Thanks,
Steve
Stoich
Telerik team
 answered on 23 May 2012
1 answer
156 views
Hi,

    I want to test performance of my web application, for this I did following:

    • Created a small web test
    • Designed a load test
      • Environment setup
      • Define user profiles, balance workload & adjust test settings

    Controller and agents got enable and turned their buttons into green but reporter didn’t most of the time. Reporter remains into red even I started service from “Configure Load Test Services” but still “Run this test” button is disabled and having message “cannot run because reporter cannot establish its databases”.

     

    I m facing above problem most of the time but if reporter turns into green I could not analyze results. I cannot see any results in “Analyze your results” window.

     

    I m facing one more issue that when I attempted to stop the service and restart it, I m getting “Unable to save configuration file. Be sure you have permissions to save the file” error on clicking “Apply” or “Ok” buttons.

     

    Kindly guide me in above scenarios.

    Thanks in advance

    • I want to test performance of my web application, for this I did following:
      •   Created a small web test
      •   Designed a load test (1. Environment setup and  2. Define user profiles, balance workload & adjust test settings)
      Controller and agents got enable and turned their buttons into green but reporter didn’t most of the time. Reporter remains into red even I started service from “Configure Load Test Services” but still “Run this test” button is disabled and having message “cannot run because reporter cannot establish its databases”.
        
      I m facing above problem most of the time but if reporter turns into green I could not analyze results. I cannot see any results in “Analyze your results” window.
        
      I m facing one more issue that when I attempted to stop the service and restart it, I m getting “Unable to save configuration file. Be sure you have permissions to save the file” error on clicking “Apply” or “Ok” buttons.
        
      Kindly guide me in above scenarios.
      Thanks in advance 
Byron
Telerik team
 answered on 23 May 2012
2 answers
74 views
I have this code written as a Script Step.
I am extracting the value "BC_PolEffectiveDate" from a web application and comparing it to a value "EffectiveDate" in the database.

 

 

<FONT color=#0000ff size=2 face="courier new">
<P>If </FONT><FONT size=2 face="courier new">Data(</FONT><FONT 
color=#800000 size=2 face="courier new">"EffectiveDate"</FONT><FONT size=2 
face="courier new">).ToString() = BC_PolEffectiveDate </FONT>Then </P>
<P> <FONT size=2 face="courier new">Log.WriteLine(</FONT><FONT 
color=#800000 size=2 face="courier new">"AQS Policy Effective Date matches 
Billing Center Policy Effective Date"</FONT>) </P>
<P> <FONT color=#008000 size=2 face="courier new">Else</P>
<P> Log.WriteLine("AQS Policy Effective Date does not match Billing Center 
Policy Effective Date")</P></FONT><FONT color=#0000ff size=2 face="courier new">
<P>End If</P></FONT>

I can see from the log when these two values do not match but when i run the script on a schedule, Test Studio returns just a pass or fail info and the test passes either by going into the IF or ELSE condition. I need to fail the test when the script goes into the ELSE condition. How can i handle that? Is there a custom code that i can use to change the status of the test when i encounter certain conditions?

 

Anthony
Telerik team
 answered on 21 May 2012
2 answers
136 views
I have Test Studio standalone trial 2012.1.411.0 installed on my desktop (Windows 7) and it also installed the VS plugin, and can record and execute tests across all 4 supported browsers.

However, I installed the same version on Windows Server 2008 (without the VS plugin) and cannot get Chrome to execute any tests, it just hangs with "Preparing browser for automation..."

I've checked that the Chrome Extension is installed and it is Enabled and I've configured the browser.
When I checked for the registry entry at the bottom of this page, it wasn't there:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/chrome/cannot-execute-in-chrome.aspx

I imported the reg entry and rebooted the server but Chrome will still not execute a simple test.

Is there anything else I can try?

Thanks,
Steve


Anthony
Telerik team
 answered on 21 May 2012
11 answers
317 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.7K+ 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
103 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
77 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
109 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?