Telerik Forums
Test Studio Forum
5 answers
99 views

Hi All,

 I am excepting an element which sometimes shows up and someother time doesnt and it depends on testcase. But in our code we have something like below.

Element adjustmentDetailsWindow = Manager.ActiveBrowser.Find.ById("viewDetailsContentWindow");

So problem is when window is present, we get correct results, but if window is not present, then we get an exception saying "Object Reference not set to isntance of object"

I put them in try catch block.But is there any better way to avoid exception as well when window is not present.?

Thanks,

VVP

Ivaylo
Telerik team
 answered on 07 Jul 2015
12 answers
250 views
Does any one seen a problem with installing Storage service for Test Studio. I've been trying to install Test Studio Storage services and keeps getting error:
'Service 'Telerik Storage Service' (Telerik Storage Service) failed to start. Verify that you have sufficient privileges to start system services.' This error popup while it is try to do SQLExpress installation.

I have check with my DevOps and he said I have Admin priviledges for my machine and also the VM  windows 7 machine that I am trying to setup. Is there a known issues that I am not aware of or is there any setup docs that would help would be great.

Thank you,

JamesNG
Andrew
Top achievements
Rank 1
 answered on 06 Jul 2015
3 answers
148 views

Hi,

 

When i click on download option in my application, i get a popup saying "Do you want to open or save file.xls" from some website. 

Is there any way to read that file name in the popup (Image.jpeg) or in window which appears after Clicking Save as button in dialog(SaveAsWindow.jpeg).

 Kindly let me know 

 

Ivaylo
Telerik team
 answered on 06 Jul 2015
3 answers
124 views

Hi,

 We are about to purchase Test Studio, but before I have a problem.

 Is the Scheduling Server separately licenced?

I want to try emailing the test results to myself, is the scheduling server included to trial version?

 

Ivaylo
Telerik team
 answered on 06 Jul 2015
1 answer
93 views

Hello Team,

 

I am working on a application where users with different roles and access rights are involved. The base level user submit a report which has to be approved by other users( user at higher level in hierarchy). Each time a report is submitted, a submission ID is generated which is used for futher correspondence. I have created two fully functional test cases which are: 

 

Test 1: Create abd submit new report

Test 2: Approve Submitted report

 

I am planning to integrate both the test cases so that whatever submission ID is generated by first test case, can be populated to the 2nd test case. Right now, I am explicitly entering the ID in 2nd case to filter out the report to be approved. Through forums and internet, I got a rough idea that some data binding and coded step is involved but could not figure out the correct solution.Can someone help to achieve this goal?

 

 

Thanks

Ivaylo
Telerik team
 answered on 06 Jul 2015
4 answers
115 views

Hi guys,

 

  We are using a web app that needs to run on FF 6.0.1. I had the latest version of firefox, where I could record without any problems.

  I had to uninstall it and install a 6.0.1 version. But everytime I get an error(pic.1.). A have enabled the extension, but it still shows the error.

  Can you help me please?

Thank you

J.

Konstantin Petkov
Telerik team
 answered on 03 Jul 2015
1 answer
116 views

Is there any way I can decide under which Page of Element Explorer the recorded element should be placed when I explicitly add to element repository during recording. 

In My Case the Application Under Test URL changes as version changes so if i already have some elements present for one AUT page and when i want to add new elements to same page while recording on new version of AUT(app under test), it creates new Page under Element Explorer.

Why I need to achieve this is because when I refer to these elements in Coded steps using Pages.XYZ.Element1 pattern I need to remember multiple Pages of element explorer even though they contains locators of a single AUT page.

Please suggest possible solution to this.

 

Thanks

 

Ivaylo
Telerik team
 answered on 03 Jul 2015
1 answer
61 views

Hello,
I have several questions conserning Telerik Test Studio. We would like to buy this product but need some additional information. 

1. Our main task is RadCharts testing, not only like a control but also like a set of lines, points or something like that. For example, its nesessary for searching two lines intersection point. Can Test Studio give us possibility to reach all these elements programmatically? 
2. I've tried to make new Visual C# Test Studio project in Visual Studio 2010 directly and made new test by recorder with several user's actions. After it I tried to edit generated programm code in Visual Studio and run test but changes didn't apply. Break points and debug didn't work too. How can I solve this problem? I'm interested in Visual Studio 2010 only.  

Thank you in advance

Konstantin Petkov
Telerik team
 answered on 03 Jul 2015
1 answer
85 views

Hi,

 In our automation testing, we use controls directly in scripts

ie.Pages.HtmlPage.textdropdown  etc

But recently there was some changes and we spent lots of time replacing each and every statement with new control

So i was thinking to move this "Pages.HtmlPage.textdropdown" to a library file with name "DropdownField" and access it in scripts.

I tried like

 1) HtmlSelect dropdown List= Pages.HtmlPage.textdropdown;

2) Pages.HtmlPage.textdropdown DropdownField

But i am getting error like Pages.HtmlPage is a property but used like a type.

Any method for accessing html element from a library ?

 

VVP
Top achievements
Rank 2
 answered on 03 Jul 2015
3 answers
245 views
This issue is in regards to our company's licensed version of Telerik Test Studio. Our original request was Support ID:541137

Test Studio version installed:
2012.1.411.0

At present our issue is that TestStudio is unable to do the following:
1. Connect recorder to IE ( ver 8 & 9)
2. Playback in IE (ver 8 & 9)

TestStudio will presently:
1. Playback in Firefox
2. Playback in Chrome

Environment:
Dedicated Virtual Machine with Windows Server 2008 R2, latest Microsoft updates.
Environments are configured with Visual Studio 2010 installed and the TestRun machine is without.


When attempting to record a new event the following error is generated:
[06/07 08:28:39,Telerik.TestStudio.exe(5328:9)] First trace message from pool unnamed thread (managed ID = 9, native ID = 8752).
[06/07 08:28:39,Telerik.TestStudio.exe(5328:9),Framework] Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
[06/07 08:28:39,Telerik.TestStudio.exe(5328:9)] First trace message from pool thread "EnsureActiveBrowser worker" (managed ID = 9, native ID = 8752).
[06/07 08:28:39,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=532, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=787976)...
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.Start() : Process launched (ID=1460, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 657022").
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.Start() : Process exited (ID=1460, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 657022").
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process "Telerik.TestStudio" (ID=5328) is assumed to host the controller.
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : ------- Function Start -------
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.1.411.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?5328
[06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 657022 on another thread...
[06/07 08:28:40,Telerik.TestStudio.exe(5328:12)] First trace message from pool thread "WaitAsync polling wait worker" (managed ID = 12, native ID = 8672).
[06/07 08:28:40,Telerik.TestStudio.exe(5328:12),Framework] <>c__DisplayClassf.<WaitForDocument>b__8() : Attempting to get document from window handle
[06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
[06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : Sending WM_COPYDATA to HWND 657022 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.1.411.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?5328")...
[06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=ERROR_ALREADY_EXISTS).
[06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : ------- Function End -------
[06/07 08:29:11,Telerik.TestStudio.exe(5328:9),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/07 08:29:11,Telerik.TestStudio.exe(5328:9),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)
   at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)


Back story:
1. Test Studio was initially installed on a fresh VM of Windows Server 2008 R2.
2. The VM did not have visual studio installed or any other applications outside of the OS.
3. After installing Test Studio, an application error was generated when attempting to run.
4. This was narrowed down to a missing visual studio library, which was included with the VS 2008 Redistributable.
5. The VS 2008 Redistributable was downloaded and installed from this link: http://www.microsoft.com/en-us/download/details.aspx?id=29
NOTE: This is the 32bit x86 distributable.
6. After rebooting and further tests the VS dll reference error no longer occured.
7. Test Studio is then unable to connect the recorder to or playback in IE.
8. Per recommendations from our original support request (Support ID:541137 ) Visual Studio 2010 was installed and run in administrator mode.
9. Test Studio continued to have difficulties in IE.
10. The Test Studio project was then opened in VS 2010 and the target cpu was adjusted to x86.
11. The issue persisted (same wait for error).
Ivaylo
Telerik team
 answered on 02 Jul 2015
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?