Telerik Forums
Test Studio Forum
1 answer
64 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
203 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
3 answers
170 views

I have several simple test setup and create on test as a step which is used in another test.

This all works fine if i run the tests in visual studio.(Test Explorer - Run All)

I need to get the test working as part of a build definition on our build server.

The test that have a 'test as step' included in them fails on the build server with

'24/06/2015 10:18:35' - 'Fail' : 1. Execute test 'GotoTelerikWebSite'
InnerException:
System.IO.FileNotFoundException: Unable to find test 'C:\Builds\16\TestStudio\TTSNightly\tst\GotoTelerikWebSite.tstest'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ExecuteTestActionDescriptor.Execute(IAutomationHost autoHost, TestAsStepResult result)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

 

It looks like its after the actual tstest in the build folder, I have set the 'Copy to Output Directory' to 'Copy always'

 Anybody have instruction on how to get 'Test as Step' tests workign with build servers?

Konstantin Petkov
Telerik team
 answered on 02 Jul 2015
1 answer
51 views

Hi Team,

 

I have been working with the Test Studio Scheduling Service from the past few days and approaching you with a lot of questions.

The test list results are stored in the storage DB in the metadata format. I would like to know any information on where the actual information related to the test lists - tests, result files, logs etc, of the scheduled test list in order to generate custom reports after each run of the schedule.

I searched the DB and I'm not able to find the actual data files. (in the dbo.TestListResults, dbo.TestLists, dbo.Results table, Its all encrypted)

 

Kindly help me in finding the same.

 

Thanks,

Pravallika.

 

Konstantin Petkov
Telerik team
 answered on 01 Jul 2015
4 answers
46 views

Hi,

I have noticed since yesterday that there are some steps that don't execute/run as they should and they still show as passed when the playback is completed.
an example is of the screenshot provided, where it should change the amounts in group C to 0.00800 but it only does it for one of them and not the rest.
I have tried selecting the entire amount and using: backspace, delete and typing the new amount in. and it works sometimes for 1 of them and that is it.
Another example is of an element I made it verify the TextContent and it also passed and it should have failed since it's not there.

 

Any advice/help is appreciated

Boyan Boev
Telerik team
 answered on 29 Jun 2015
1 answer
51 views

Hello

I am developing a data driven test with Test Studio using local data.

The particular situation I am facing currently is:

Iteration 1 is executing-> my application under test crashes 

Now how can I move to Iteration 2 (re-run test by relaunching app while remembering iteration number)?

 

Thanks!

Boyan Boev
Telerik team
 answered on 29 Jun 2015
4 answers
82 views

I've been trying to perform the complete steps associated to this documentation and can't get the update to Excel to work:  http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/write-into-data-source 

I have added a reference to this path\file:  C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office14\Microsoft.Office.Interop.Excel.dll

as described here:  http://docs.telerik.com/teststudio/advanced-topics/coded-steps/add-assembly-reference Please see the attached jpg file to see the error.​

What am I doing wrong?

 

Here is a copy of the pertainent entries from the Log file:

'6/19/2015 1:04:40 PM' - Using 'InternetExplorer' version '11.0' as default browser.
'6/19/2015 1:04:41 PM' - 'Pass' : 1. Navigate to : 'http://www.checkdomain.com/'
'6/19/2015 1:04:41 PM' - 'Pass' : 2. Enter text 'www.ask.com' in 'DomainText'
'6/19/2015 1:04:42 PM' - 'Pass' : 3. Click 'Submit'
'6/19/2015 1:04:42 PM' - LOG: 1
'6/19/2015 1:04:42 PM' - LOG: 2
'6/19/2015 1:04:42 PM' - LOG: 3
'6/19/2015 1:04:43 PM' - LOG: 4
'6/19/2015 1:04:43 PM' - LOG: 5
'6/19/2015 1:04:43 PM' - LOG: 6
'6/19/2015 1:04:44 PM' - 'Pass' : 4. [AddToExcelFile_CodedStep] : New Coded Step

Boyan Boev
Telerik team
 answered on 29 Jun 2015
1 answer
55 views

Hi,

My Load test contains sequence of POST requests. In first POST response one hidden text box is there. I need to extract that hidden ext box value and provide to next POST request. Please provide the steps to do this.

Thanks
Srinivas

Boyan Boev
Telerik team
 answered on 29 Jun 2015
1 answer
76 views

Hi,

 

In my project, sometimes there are model and non model dialogs which keeps appearing on specific scenarios.

But the problem is sometimes we observed that, they dont get closed and leads to failure in other steps.

How to check whether any dialog / window is foreground?

I checked below options .None seems to work fine.

Manager.Current.ActiveBrowser.IsIEDialog

Manager.Current.ActiveBrowser.IsFrame

Manager.ActiveBrowser.Window.IsForegroundWindow

 Can anyone shed light to possible solutions.

Thanks,

VVP

Boyan Boev
Telerik team
 answered on 29 Jun 2015
4 answers
75 views

Hi,

I have my system running Windows 8.1 Enterprise and VM having Windows server 2008 R2 Enterprise version

Scripts running in my system getting failed on my vm.

Applicaiton is web based and i dont understand the reason for failure. 

Any one faced these kind of issues which occur due to different OS? if so kindly let me know how to get Telerik logs and how to debug.

Thanks,

VVP

Boyan Boev
Telerik team
 answered on 29 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?