Telerik Forums
Test Studio Forum
31 answers
262 views
Hi,

I have problem with launch recorder at Windows Vista. I installed Test Studio on Win7 and there is no problem, but on Vista machine, I have get "Unable to launch recorder" error. I have tried almost every solution recommendation in this forum but none of them solved my problem.

Log file

 [06/16 15:41:18,Telerik.TestStudio.exe(1248:18)] First trace message from process 1248: "C:\Program Files (x86)\Telerik\Test Studio\Bin\Telerik.TestStudio.exe" 
[06/16 15:41:18,Telerik.TestStudio.exe(1248:18)] First trace message from pool unnamed thread (managed ID = 18, native ID = 5660).
[06/16 15:41:18,Telerik.TestStudio.exe(1248:18),Framework] Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
[06/16 15:41:18,Telerik.TestStudio.exe(1248:18)] First trace message from pool thread "EnsureActiveBrowser worker" (managed ID = 18, native ID = 5660).
[06/16 15:41:18,Telerik.TestStudio.exe(1248:18),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=5708, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=460388)...
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.Start() : Process launched (ID=3536, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 591540").
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.Start() : Process exited (ID=3536, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 591540").
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process "Telerik.TestStudio" (ID=1248) is assumed to host the controller.
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.InjectCode() : ------- Function Start -------
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.1.411.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?1248
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 591540 on another thread...
[06/16 15:41:19,Telerik.TestStudio.exe(1248:14)] First trace message from pool thread "WaitAsync polling wait worker" (managed ID = 14, native ID = 5272).
[06/16 15:41:19,Telerik.TestStudio.exe(1248:14),Framework] <>c__DisplayClassf.<WaitForDocument>b__8() : Attempting to get document from window handle
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.InjectCode() : Sending WM_COPYDATA to HWND 591540 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.1.411.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?1248")...
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=ERROR_ALREADY_EXISTS).
[06/16 15:41:19,Telerik.TestStudio.exe(1248:18),Framework] Connector.InjectCode() : ------- Function End -------
[06/16 15:41:49,Telerik.TestStudio.exe(1248:18),Recording] <>c__DisplayClass9.<EnsureActiveBrowser>b__8() : EXCEPTION! (see below)
     Outer Exception Type: System.TimeoutException
     Message: Wait for condition has timed out
     HRESULT: 0x80131505 (Official ID (if app.) = COR_E_TIMEOUT, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5381)
     Call Stack:
          at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
          at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
          at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
          at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
          at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
          at Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
          at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)


[06/16 15:41:49,Telerik.TestStudio.exe(1248:18),Recording] RecordViewController.BrowserLaunched() : Error launching the recorder. Error : System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
Cody
Telerik team
 answered on 10 Oct 2012
3 answers
140 views
Hi,

I was wondering if somebody could help me with my test design in relation to a navigation bar which is on every page.  Basically on our website which I am going to be running through automation, I'd like to creat some generic functionality to navigate around the site by passing through the link text to click on.  So far I have tried using record and play ( please bear in mind that I have come from a fully coded automation system prior to test studio ) but found that the element repository will become very bloated if I have to add an element per navigation link under every single page, especially as the users of the site are able to dynamically create there own pages with navigation links. If you see the attached image "NavigationBar.jpg", this is the navigation bar which displays on every page in it's most basic default form.

The best way I have come up with so far is to create a coded step as follows:

[CodedStep(@"Clicks one of the Search tabs")]
public void Click_Product_Search_Tab( string productNavLinkToClick )
{
    HtmlFindExpression expression = new HtmlFindExpression("tagname=a", "id=?searchLink", "textcontent=" + productNavLinkToClick );
    Element eLink = new Element( expression, Find, ActiveBrowser );
    eLink.Wait.ForExists( 30000 );
    HtmlAnchor hotelNavLink = new HtmlAnchor( eLink );
      
    if ( hotelNavLink != null )
        hotelNavLink.Click();
      
    Assert.IsNull( hotelNavLink );
      
      
}

I feel this would keep the functionality re-usable.  To test it I removes the productNavLinkToClick  argument and created a local data table with one cell/column which contained "hotel" replacing the HtmlFindExpression with Data[0].ToString() so I know the code itself works, but I am struggling to make it re-usable by the QA Manual testers who are not code literate.  I was hoping either for them to be able to just drag and drop my coded step and add the value of productNavLinkToClick themselves, or for me to intelligentally work out what page I am on and need to get to and call into this coded step accordingly.

I would be grateful if you could let me know if I am on the right track for a maintenance free navigation test or whether there is some better design?  I would be happy to tweak what I have done if required.

Please let me know if you require any further information

Many Thanks
Shane
Byron
Telerik team
 answered on 09 Oct 2012
3 answers
97 views
I was able to successfully run the performance test script on a machine with a runtime license. The test results with the .tsperf file extension are captured successfully in a folder.

However, I am unable to open the .tsperf file to view the test results, which makes the tests useless :-(

Any suggestions?
Mario
Telerik team
 answered on 09 Oct 2012
1 answer
123 views
Hey guys

I'm trying to figure out how to use a combobox from the ajax control toolkit in test studio. 

In some cases I can't seem to select the proper item, and in others when I submit a combobox with a selected item the default value (prior to my test running) is submitted.

Any suggestions would be appreciated!
Thanks
Jon
Mario
Telerik team
 answered on 09 Oct 2012
3 answers
271 views
Hi Cody/plamen,

It seems that it is not possible to set multiple datasources to a single test script ot case..

let me explain you my scenario.....

initially i binded a xls file for some search criteria with various inputs...
for example...

designed a xls file like gender,age,location columns....with different set values for each column in multiple rows.....
i binded it to a test script or case.......then for each execution of row in xls file.....i have a req like.....connecting to db fetching rows count for the same criteria and confirming the test script passed or failed.....

so i want bind a datasource like connecting db to this same test script....


do we have chance of like multiple binding or any suggests for my criteria???

thanks in advance....

Thanks.,
Hari
Asare
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
96 views

I am having difficulty selecting a radmenu text item, which should launch a page.

In the script, I've added waits for the menu to be enabled and populated, prior to trying to access the item.

When using the application, the user would mouseover a menu bar, then scroll down a list to select the desired menu item.

How can this be automated? Mouseclick isn't selecting, directly trying to access the target ref isn't working either.

Plamen
Telerik team
 answered on 08 Oct 2012
3 answers
88 views
Is there any way for sequential execution of test steps in test studio?
expectation:
while step1 is executed, test studio should wait and go to step2 only when we get response(atleast one element of our choice) file from the server.
Example:
Step1- Navigate to yahoomail.com
Step2- Enter username text in user name text box

Here test studio should go to step2 only if it gets response file or any of the element in xml path from the server.

Reason:
In our application, once we navigate to our application URL, test studio is searching for the elements like user ID text box, which takes bit long time to load. In an overview we are not having synch with the timings of test studio and our application.
If we insert execution delay for each and every step, we are not sure how much time to wait for each and every step to execute.
Mario
Telerik team
 answered on 05 Oct 2012
1 answer
98 views

Data source contains 3 rows each with 3 user details
Scenario:
Step1: Login to the portal
Step2: Enter user1 data from data source and save
Step3: Enter user2 data from data source and save
Step3:Enter User3 data from data source and save
Step4: log off from the portal

Here when i run the scenario, for each and every Iteration, test studio is prompting to the login page of the portal, which is not required.
So our expectation is.. once we login to the portal, 3 iterations should get completed then log off. No need to login and logoff for each iteration.
Byron
Telerik team
 answered on 05 Oct 2012
1 answer
362 views
Hi,
     I am using Test Studio to record scripts on a web application. There are some elements that get displayed only after a background script is executed based on a previous selection. The background script execution varies in time and so i have tried enabling the usestepwaitonelements which for some reason does not work always (it seems to work sometimes) and also I tried using an execution delay which works. We do not want to use the execution delay unless necessary as the script execution gets delayed even when not necessary.

What options do i have to set to make the usestepwaitonelements to work on my scripts.

Thanks
Plamen
Telerik team
 answered on 05 Oct 2012
1 answer
64 views
Hi,

I am having difficulties with forms testing with Telerik and IE9.  I am on IE 9.0.8112.1642.

First of all, using the tab key between fields seems to be really hit and miss, and the subsequent playback is populating the wrong fields on replay.  This is partially overcome by only using point and click into fields - am I better off regressing to IE8?  I have tried (several times) to recalibrate the browser, which the application reports as being successful but doesn't seem to help.   Should I be looking to calibrate the browser manually instead?

I have replicated the same problem on a public site and have zipped up the test files (attached).

Your suggestions would be appreciated.

Andy
Ivaylo
Telerik team
 answered on 05 Oct 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?