Telerik Forums
Test Studio Forum
17 answers
283 views
We've debated THAT question for awhile! 

WAIT!  I'm asking about SCREEN size, etc between the time of script recording and playback.

We have deployed WebUI in our shop with multiple QA analysts recording scripting on separate machines and then once they are satisfied with the results the sctripts are delivered to the central instance and run daily there.  We have seen inconsistencies in test results (PASS/FAIL) in 2 categories:  performance and image size.

The machines need to be as close as possible in these areas.   Performance needs to be matched using RAM, number of competing applications/resources, virtual environment configurations, etc..... this is required for steps to execute that are dependent on a pop-up or something else that may be delayed.

We are finding that the factors neded to match SIZE also have an effect.  (Especially if you rely on IMAGE VERIFICATION).   I recently proved to myself that if I have changed the size of the browser window (IE) significantly from what the script was recorded against that the image verification fails.

So I am asking, if you intend to record a script on one machine and execute it on another and that script uses image verification (or similar), which of the following 3 MUST match in order to assure valid testing?
            Screen resolution settings
            Browser window size
            Montior size

Are there any commands to implement that can adjust these settings to standard values before a script perpares to execute?
Tom
Top achievements
Rank 1
 answered on 23 Jun 2011
2 answers
113 views
Hi,
I was having trouble recording and playing back scripts that contain dialog boxes, after talking to one of the developers here it appears that the dialog boxes are created as needed using extjs.  I've tried using the generic dialog box option but that wasn't anymore succesful then attempting to record manually - does anyone know of a way of getting these items to record.  Any help would be appreciated.

Thanks
Sandy
S
Top achievements
Rank 1
 answered on 23 Jun 2011
1 answer
237 views
When using the Wait for URL step I would like to be able to use a regular expression in the URL because it changes depending on which test server we are hitting.  How can I get this to work?
Cody
Telerik team
 answered on 22 Jun 2011
1 answer
96 views
Hello Support,

I see in 2011.1.621.0 build if "Compilation Failed due to some coded steps, the error Log is Not Displayed (out of sight)". 

See attached screenshot.

We have more than fifty scripts and almost every script has one or two coded steps, So it is very difficult to figure it out which script has problem.

Thanks,
Madhu.
Konstantin Petkov
Telerik team
 answered on 22 Jun 2011
1 answer
71 views

Hello,

When i run the automation case with vs2010, it failed and  threw the exception as below, which sees that there need the silverlight plugin installed. But i am not sure which plugin i should install. Currently in my machine there have the silverlight3 SDK AND
silverlight4 SDK installed.

Overall Result: Fail
------------------------------------------------------------
'6/16/2011 2:27:13 PM' - Detected custom code in test. Locating test assembly: UIAutomation.dll.
'6/16/2011 2:27:13 PM' - Assembly Found: C:\Redstone\RedstoneDev\Clients\Test\UITests\UIAutomation\TestResults\v-ccheng_MSNBC-CCHENG01 2011-06-16 14_27_10\Out\UIAutomation.dll
'6/16/2011 2:27:13 PM' - Loading code class: 'UIAutomation.RedstoneTests.HelperSteps.Select_Env_Launch_Redstone'.
------------------------------------------------------------
'6/16/2011 2:27:14 PM' - 'Pass' : 1. [Select_Env_Launch_Redstone_CodedStep] : @"Navigate to : 'Test Redstone URL'
'6/16/2011 2:27:44 PM' - 'Fail' : 2. LeftClick on Item24Border
------------------------------------------------------------
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:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   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:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   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()
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Overall Result: Fail
'6/16/2011 2:27:44 PM' - Duration: [0 min: 30 sec: 689 msec]
------------------------------------------------------------

<<< Test-as-Step 'RedstoneTests\HelperSteps\Select_Env_Launch_Redstone.aii' log ends.

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:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   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()
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Overall Result: Fail
'6/16/2011 2:27:44 PM' - Duration: [0 min: 30 sec: 923 msec]
------------------------------------------------------------

<<< Test-as-Step 'Applets\CommonSteps\Open_test_story.aii' log ends.

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:'res://ieframe.dll/http_404.htm#http://msnbc-kayu01.fareast.corp.microsoft.com/wbstart.htm?DisableConfirmPrompt=true' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   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()
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/16/2011 2:27:44 PM' - Overall Result: Fail
'6/16/2011 2:27:44 PM' - Duration: [0 min: 31 sec: 735 msec]
------------------------------------------------------------
'6/16/2011 2:27:45 PM' - Test completed!

Best,
Cherry

Stoich
Telerik team
 answered on 22 Jun 2011
20 answers
178 views

 

Hi

I am new to this tool 'Automated QA Edition'. I have to perform a 'Click' operation over a RadMenuitem which is not visible by default. This item is a submenu. I am not able to record the event for left menu navigation from parent menu to submenu.

Can anyone please help.

Regards
Pritima Virmani
Konstantin Petkov
Telerik team
 answered on 22 Jun 2011
1 answer
130 views
Hello!
I have a simple case, but i've spent 1,5 hours trying to resolve it - no success!

The case is: login in gmail.com several times under different users.
After first login need to clear cookies, but the ActiveBrowser.Cookies.DeleteCookie - doesn't work in IE.

I found a lot of topics, but no one helps.
http://www.artoftest.com/community/forums/webaii--web-automation-infrastructure/forum-general-questions/cannot-delete-cookies.aspx
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/telerik-testing-framework/intermediate-topics/cookie-support.aspx
My browsers are: IE8.0, Chrome12, Firefox4.0, Safari 5.0.5
The code is:
Manager.LaunchNewBrowser();
           System.Net.CookieCollection gCookie1 = ActiveBrowser.Cookies.GetCookies("http://google.com");
           System.Net.CookieCollection gCookie2 = ActiveBrowser.Cookies.GetCookies("http://www.google.com");
           System.Net.CookieCollection gCookie3 = ActiveBrowser.Cookies.GetCookies("http://www.accounts.google.com");
            
           foreach (System.Net.Cookie cookie in appCookie)
           {
               ActiveBrowser.Cookies.DeleteCookie(cookie);
           }
 
           foreach (System.Net.Cookie cookie in gCookie1)
           {
               ActiveBrowser.Cookies.DeleteCookie(cookie);
           }
            
           foreach (System.Net.Cookie cookie in gCookie2)
           {
               ActiveBrowser.Cookies.DeleteCookie(cookie);
           }
 
           foreach (System.Net.Cookie cookie in gCookie3)
           {
               ActiveBrowser.Cookies.DeleteCookie(cookie);
           }
 
           ActiveBrowser.NavigateTo("https://www.google.com/accounts/ServiceLogin");

This work in chrome, safari,firefox, but not works in IE8.0
Cody
Telerik team
 answered on 22 Jun 2011
4 answers
137 views
Hi all,
  I have just this past few days downloaded the trial of Telerik Test Studio and am running into a bit of a problem.

I record a simple test (though this appears to happen in other situations) such as:

Navigate to http://www.htmlcodetutorial.com/linking/linking_famsupp_70.html

Click 'ThisLinkLink'
Connect to pop-up window

The test does not replay correctly in Firefox, erroing on the 'connect the pop-up window' step.
Safari exhibits the same behaviour.
IE and Chrome replay as expected.

I am running latest version of Telerik Test Studio (Evaluation), Win 7 Ultimate 32-bit, Firefox 3.6.16, Safari 5.0.5.

I can't see any reason for this to fail with the exception of a bad config.
I have followed the supplied configuration documentation twice now for each of the failing browsers to no avail.

Any thoughts?

Best regards,
  Stewart.
Anthony
Telerik team
 answered on 21 Jun 2011
4 answers
123 views
In telerik tool recorder not working then. Any other way to follow writing to  Descriptive programmer telerik  tool then
how follows step by step to ex plan  for me
Stoich
Telerik team
 answered on 21 Jun 2011
6 answers
143 views
Is there a way to make the tests created with "WebUI Test Studio QA edition" run automatically after the project build is completed.
We don't use team foundation server. We use Visual Studio 2008, CCNET (and SVN).
Cody
Telerik team
 answered on 20 Jun 2011
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?