Telerik Forums
Test Studio Forum
2 answers
92 views
Hello,

Is there a way to turn this setting off?  I use the 'Run from Here' method to execute a handful of steps that I just created.  I have never needed to continue recording when the 'Run from Here' has completed, and I don't see myself using it during construction.  I would imagine that every Telerik user (at least once) has continued on without clicking the Pause Recording button, unintentionally, followed by a number of expletives!

Let me know you think...thanks!
Alan
Alan
Top achievements
Rank 2
 answered on 10 Oct 2012
3 answers
185 views
Hi,

I've seen the example of how to access SQL database from the code, which would work perfectly fine. One thing I don't like thought, is defining the connection string in the code. I'd rather have access to a connection string property of my datasource which is defined in the project. Is this currently possible?

Regards.
Byron
Telerik team
 answered on 10 Oct 2012
31 answers
267 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
151 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
109 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
130 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
285 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
108 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
94 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
103 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?