Telerik Forums
Test Studio Forum
1 answer
97 views
I customize code : find item follow control name
But it cannot find special text
You can refer attachment
Plamen
Telerik team
 answered on 29 May 2012
1 answer
138 views
I want to use Excel for non-iterative data driven testing. I used the code sample from the user manual, and I pointed my project to the proper assembly (Microsoft.Office.Interop.Excel). I then put a "using" statement in my code. But when I try to run the script, it tells me that it cannot create an instance of the following:

Microsoft.Office.Interop.Excel.Application excelApp = new 
Microsoft.Office.Interop.Excel.Application();

The specific error is c:\Users\enoch.ornstead\Documents\Test Studio Projects\Programming_testing\Excel integration.tstest.cs: Line 101: (CS0144) Cannot create an instance of the abstract class or interface 'Microsoft.Office.Interop.Excel.Application'
Any idea what I could be doing wrong?
Stoich
Telerik team
 answered on 28 May 2012
3 answers
201 views
Greetings

Currenlty we are finding the ways to load test our .net4 application, Please inform if Telerik test studio supports load testing .net4 applications.

Client Application = WPF (Desktop)
Application Server/communication = WCF (Currently a self hosted WCF application/server but in future we planning to deploy it as windows service)
Database = SQL Server 2008

Let me know if more information is required for reply.

Regards,
Zohaib Azhar
Cody
Telerik team
 answered on 25 May 2012
2 answers
147 views
Hello everybody I hope you can help me with this.
I have an HTML Select list called "Year" that contains years from 1982 to 2013. 

What I want to do is to select every year because this action display information in another html select list, and select again and so on.

When I'm recording, I clicked on every year and everything seems to be fine because the information displays, but when I reproduce the steps it only select the element or year, but is not as a click, so the information doesn't appear.

I know that I can simulate a mouse click or an enter when I have selected the element, I already did that but this is not the correct way that I need it, I also tried to select by id, text, and URL (variable) but didn't work 

Also I noticed in the webtest.tstest that this particular step appears as a "select" and not as a click, I'm sending you the screenshots to see if you know what to do


Thanks in advance
Pao
Paola
Top achievements
Rank 1
 answered on 24 May 2012
11 answers
329 views

Hi!

I get the error Unable to launch recorder

I use IE8, windows Xp profesional.
I have no web aii framework or older wersion of web ut installed , but the recorder is not launching.
I try WebUI_TestStudio_QA_2010_2_830_Trial

Please, help me.


The log is
[19:42] - LogMessage: [19:42:42] - WebUI Test Studio (version:2010.2.830.0) started.
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - LogMessage: [19:44:23] - Active Project is : 'TestProject1'
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - LogMessage: [19:44:24] - Project 'TestProject1' Created.
[19:44] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
[19:44] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
[19:44] - LogMessage: [19:44:53] - Test 'New Test' selected.
[19:45] - Error launching the recorder. Error : System.TimeoutException: Wait for condition has timed out
в ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
в ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
в ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Int32 timeout)
в ArtOfTest.WebAii.Design.RecorderWindowManager.WaitForRecorderCallBackReady()
в ArtOfTest.WebAii.Design.RecorderWindowManager.<>c__DisplayClass8.<EnsureActiveBrowser>b__7()
[19:46] - Error launching the recorder. Error : System.TimeoutException: Wait for condition has timed out
в ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
в ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
в ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Int32 timeout)
в ArtOfTest.WebAii.Design.RecorderWindowManager.WaitForRecorderCallBackReady()
в ArtOfTest.WebAii.Design.RecorderWindowManager.<>c__DisplayClass8.<EnsureActiveBrowser>b__7()

Plamen
Telerik team
 answered on 24 May 2012
3 answers
213 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
103 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
170 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
82 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
151 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
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?