Telerik Forums
Test Studio Forum
5 answers
198 views
Hi,
I can run my test list by command line, set the output directory for the results ("out") but I can't get the "mail" option to work. Do I have to set something up  somewhere?

Here's an example of my command line :

"D:\Program Files\Telerik\Test Studio 2011.2\Bin\ArtOfTest.Runner.exe" list="***:\****\TestsAutomatises_Migration\Verif_Mig_UNIT\TestLists\Unit.aiilist" out="D:\Documents and Settings\st\Desktop\Results" serverPublish="false" notifyOption="1" mails="results@dsf.ca"
Anthony
Telerik team
 answered on 22 Feb 2012
1 answer
111 views
Hi,

I submit a test list to scheduling server, and get following exception:

----------------------------------------------------
Overall Result: Fail
System.Exception: Exception loading assembly with path C:\Program Files (x86)\comparis.ch\TestLibraries\Comparis.Framework2.UnitTesting.dll. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Comparis.Framework2.UnitTesting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.UnitySerializationHolder.GetRealObject(StreamingContext context)


   at System.AppDomain.Load(AssemblyName assemblyRef)
   at ArtOfTest.WebAii.Design.Execution.TestAppLoader.LoadRefAssemblies(IList`1 references)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Design.Execution.TestAppLoader.LoadRefAssemblies(IList`1 references)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'16.02.2012 09:28:07' - Overall Result: Fail
'16.02.2012 09:28:07' - Duration: [0 min: 0 sec: 62 msec]
------------------------------------------------------------

Indeed mentioned .dll is there in the right path and scheduling was worked before. After getting this exception, whenever I submit a new test list to scheduling server, it gives following error in scheduling logs:
----------------------------------------
Machine is busy executing other tests!
----------------------------------------

Unless I reboot the server, I get the above message and after rebooting the server, I get first exception and then above message again afterwards.

Do you have any idea what could be the reason of not finding .dll in that path although it is there.

Thanks

Ercan
Plamen
Telerik team
 answered on 22 Feb 2012
2 answers
112 views
Hi folks,

How would I create a dialog box in the VB Code Behind window, read what a real user enters into a text field in the box, and use the value in a Test Studio script?

The scenario is that when a user presses a 'Forgot My Password' button they receive a temporary password by email.  I need to generate a dialog box into which the user will be able to type their temporary password, which my script can grab and then act on.  If there is a video that shows this, please point me to it.

Thanks in advance,
Nigel Edwards, Transition Computing.
Nigel
Top achievements
Rank 2
 answered on 22 Feb 2012
3 answers
200 views

Hello,

I am having issues running my test cases using the quick execution against Firefox 10 (had 9 installed but just upgraded to 10) and Safari 5.1; they run just fine against IE7 and Chrome (17.0.963).

In both cases, the browsers display a message “Preparing browser for automation…”  and then it errors out.   Also, I have followed the configurations instructions for both browsers and verified extensions are enabled.

I am using Telerik Test Studio Version 2011.2.14.13.0 on a Windows XP, Professional SP3 system.

Please find screenshots attached.

FF error

------------------------------------------------------------'2/15/2012 1:13:10 PM' - Using .Net Runtime version: '2.0.50727.3625' for tests execution.'2/15/2012 1:13:10 PM' - Starting execution....'2/15/2012 1:13:40 PM' - Failure detected during execution. Details:------------------------------------------------------------'2/15/2012 1:13:40 PM' - 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 ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)------------------------------------------------------------'2/15/2012 1:13:41 PM' - Test completed!

Safari error

Overall Result: Fail------------------------------------------------------------'2/15/2012 1:07:58 PM' - Using .Net Runtime version: '2.0.50727.3625' for tests execution.'2/15/2012 1:07:58 PM' - Starting execution....------------------------------------------------------------------------------------------------------------------------'2/15/2012 1:08:05 PM' - Using 'Safari' version '5.1' as default browser. '2/15/2012 1:08:26 PM' - 'Fail' : 1. Navigate to : '/'------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~ExecuteCommand failed!BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'https://www2dev.mdanderson.org/sapp/tracs-test/default.aspx/',ClientId:'9dae7b4f-05bc-449c-9089-56fa49071409',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')InnerException: System.TimeoutException: Timed out waiting for command to be handled   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)InnerException:ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'https://www2dev.mdanderson.org/sapp/tracs-test/default.aspx/',ClientId:'9dae7b4f-05bc-449c-9089-56fa49071409',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')InnerException: System.TimeoutException: Timed out waiting for command to be handled   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request) ---> System.TimeoutException: Timed out waiting for command to be handled   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)   --- End of inner exception stack trace ---   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)   at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri)   at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)   at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)------------------------------------------------------------'2/15/2012 1:08:26 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.------------------------------------------------------------'2/15/2012 1:08:26 PM' - Overall Result: Fail'2/15/2012 1:08:26 PM' - Duration: [0 min: 21 sec: 86 msec]------------------------------------------------------------'2/15/2012 1:09:07 PM' - Test completed!

Plamen
Telerik team
 answered on 21 Feb 2012
2 answers
188 views
Hi,

Can you please assist.
 
We are experiencing the following error 'unable to find target host (Browser/SilverlightApp) to locate an element' after you follow the steps in the test and attempt to run the test.

We are using version 2011_2_1413.

Error:
Overall Result: Fail

------------------------------------------------------------

'2012/02/20 03:06:26 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.

'2012/02/20 03:06:26 PM' - Starting execution....

'2012/02/20 03:06:26 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True

------------------------------------------------------------

------------------------------------------------------------

'2012/02/20 03:06:33 PM' - Using 'InternetExplorer' version '9.0' as default browser.

'2012/02/20 03:07:18 PM' - 'Fail' : 1. Verify Item0Image's visibility is Visible

------------------------------------------------------------

Failure Information:

~~~~~~~~~~~~~~~

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: ArtOfTest.Common.Exceptions.FindElementException: Element Not found!

   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)

   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)

   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)

   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout, WaitResultType errorResultType)

   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)

   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout)

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)

InnerException:

System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: ArtOfTest.Common.Exceptions.FindElementException: Element Not found!

   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)

   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)

   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)

   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout, WaitResultType errorResultType)

   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)

  at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout)

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)

   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

------------------------------------------------------------

'2012/02/20 03:07:18 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

------------------------------------------------------------

'2012/02/20 03:07:18 PM' - Overall Result: Fail

'2012/02/20 03:07:18 PM' - Duration: [0 min: 45 sec: 375 msec]

------------------------------------------------------------

'2012/02/20 03:07:20 PM' - Test completed!

Thanks
Lenore


Lenore
Top achievements
Rank 1
 answered on 21 Feb 2012
1 answer
142 views
Hello,
We have been using the test framework in Chrome for a while now but when Chrome upgraded itself we needed the latest version of the extensions in order for our test suite to work.  However, in that we lost something... Hard to say what...

what happens is when we do a find.byhtmlexpression then successive calls are not made and this exception is thrown:
if we switch browser type then the functions work, but we are required to test in chrome.  Seems to be something with refresh dom tree

 1. ExecuteCommand failed!, BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'be91a0a0-4a32-4290-981f-e3f553197f0e',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:''), InnerException: System.TimeoutException: Timed out waiting for command to be handled,  at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout),  at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId),  at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
Anthony
Telerik team
 answered on 20 Feb 2012
2 answers
149 views
Hello,

I used your tool found in this thread to convert my project from VB to C#.  When attempting to execute, I receive the error "The type or namespace name 'Pages' could not be found."  Is this easily solved by including an assembly reference?  I attempted to find the "System.Windows.Forms" assembly but I do not have the Profile/Client subfolders that are indicated further down in the thread.  

Thanks!
Alan 
Alan
Top achievements
Rank 2
 answered on 20 Feb 2012
4 answers
118 views
We conduct server maintenance on Wednesday nights (applying Windows updates etc.) and I run a series of tests (some as Test Lists and some not) to verify everything is back up. 

For several week now, I have encountered a strange thing happening with my Test Studio.  I try to kick off my test lists and they merely open one blank browser page after another.  When this situation occurs, I cannot run a single test alone (just get a blank page) and I cannot create a new test (click actions won't record).  Closing and reopening Test Studio does nothing to remedy the situation.

I have found that the only way to fix it is completely close everything down and reboot my machine.  Once back up the tests run normally.  Rebooting is very inconvenient especially if I'm remote.

Anyone have an idea of what is causing this and a fix?  I cannot seem to make it do it, it just this on occasion (about 6 or 7 times in as many weeks).
Dennis Minard
Top achievements
Rank 2
 answered on 20 Feb 2012
1 answer
67 views
I have installed test studio and recorded opening a browser and navigate dating to google.com.  
It when rnning the test it runs fine when i use Firefox but in IE9 it sets about:blank in the link and of course fails.  The log Contains the error that follows.  

How does one correct this error?

Thanks

'02/17/12 3:53:48 PM' - System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.Management.ManagementException: Invalid class at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObject.Get() at ArtOfTest.Common.Extensions.ProcessExtensions.GetParentProcess(Process process) at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename) --- End of inner exception stack trace --- at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)------------------------------------------------------------'02/17/12 3:53:48 PM' - Test completed!

Plamen
Telerik team
 answered on 20 Feb 2012
3 answers
135 views
Hi,

This is hari. i have a question to ask.
some time back, i have used this telerik test studio trail for automating our client application(6 months back). We did this as a POC to our client (my client is already using telerik controls in our application,hence there are customer/client to you also).
But at that time, you supported only record and replay for automating the applications.

from that time, we are looking for any tools in the market which automate our silverlight application with out concept of record and replay. ( reason for not going to record and replay procedure is if any change in the application will need to re-record again).

Recently we found a tool called TestComplete 8(smartbear.com), which supports record n replay and J#/VB Script/Delphi/C++/C# scripting method, which really suits to our requirement and started working on this scripting way to automate our application.

This tool is 80% successful in completing our requirement(20% lags becos its in emerging state, need to be fix the issues what customers raises) please find below C# scripting to login in to my application for reference using testcomplete 8:
*************************************************************************************************************************

function Login()

{

var iexplore, URL,app,bi,us,pwd,lb;

 

iexplore =

 

TestedApps["iexplore"]["Run"]();

 

URL = "http://xxxxxxxxx/xxx/";

if (!iexplore.WaitPage("*", 10000)["Exists"])

 

 

Sys["Keys"]("[Esc]");

 

iexplore["WaitPage"]("*", 2000)["ToURL"](URL);

iexplore.WaitChild("form1",5000);

app = iexplore["Page"]("http://xxxxxxxxxxxxx/xxx/")["Form"]("form1")["Panel"]("silverlightControlHost")["Object"]("XXXSLApp");

 

bi = app["SlObject"]("RadBusyIndicator","");

us = bi["SlObject"]("PART_ExtendedTextbox");

us.Keys("username");

pwd = bi["SlObject"]("Password");

pwd.Keys("password");

lb = bi["SlObject"]("LoginButton");

lb.Click();

}


*************************************************************************************************************************

We went with POC of this to our customer using testcomplete 8(they are customer to you also bcos using telerik controls in our silverlight application). They are happy with the approch of us, but they were asking us to check whether this scripting procedure of automating the application is available with telerik also.

Please let me know if this kind of approach is available to automate our application in telerik or not. Your response is going to be big help for us.

Thanks.,
Hari/wish

   


Anthony
Telerik team
 answered on 18 Feb 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?