This is a migrated thread and some comments may be shown as answers.

Same script not running on application uploaded on two URL

4 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
NKG
Top achievements
Rank 1
NKG asked on 22 Feb 2011, 08:24 AM
Hi,

I have uploaded my web application on Two URL'S. I record the scripts on one URL the copy and past that same script in a new Test and change the URL from property window.

The Script that I recorded originally in running fine but the other one is giving errors of few steps.

Error -

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: 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.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32

waitTimeout, String& stringError)


I tried lot of time but not able to do so. Please reply.

Regards,
NKG


4 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 22 Feb 2011, 10:43 AM
Hi Nitin,
   we have a special feature designed to make it easier to run the same test against multiple URLs, check this KB article out:
http://www.telerik.com/automated-testing-tools/support/kb/test-automation/running-a-test-against-multiple-urls-using-baseurl.aspx

That being said, what you're doing should still work. Would you give me more info about the two URLs?
Are you sure the applications are 100% identical except for the URLs?
Are both applications hosted on IIS?

We can resolve the problem with 100% certainty if you provide us with your test as well as access to the URL against which it fails to run. Since this is a public forum, please open a support ticket for it (a support ticket is 100% confidential).

Hope to hear from you soon!

Best wishes,
Stoich
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
NKG
Top achievements
Rank 1
answered on 23 Feb 2011, 08:40 AM
Hi Stoich,
Thanks for the reply.
The link you have forwarded me does not solve my problem. I do exactly same as wrriten in the link you provided. I changed the base URL in settings then do recording after that i again change the Base URL with other URL and run the same script but id does not works.

The Question you have asked -
Are you sure the applications are 100% identical except for the URLs?        YES
Are both applications hosted on IIS?                                  YES
          
One thing more, I have already recorded around 50 test scripts now I want to change the URL's, can it be possible or not. Also We have 5 URL's os same application.

If I have to record again then also, the LINK you provided doen not work because I have tried with fresh Project.
Please reply.

Regards,
Nitin
0
NKG
Top achievements
Rank 1
answered on 28 Feb 2011, 07:29 AM
Hi

No one reply to my query, This means  " I have already recorded around 50 test scripts now I want to change the URL's, can it be possible or not. Also We have 5 URL's os same application." not possible.

Please if possible then reply.

Regards,
Nitin
0
Stoich
Telerik team
answered on 28 Feb 2011, 01:03 PM
Hello Nitin,
   I've put together a Jing video which demonstrates a basic way to use the BaseURL feature. I hope that it will help you use this feature. Please check it out here:
http://www.screencast.com/users/TelerikTesting/folders/Jing/media/27f7712e-c81c-464e-bc0b-a67dbff6a895
In the video I edit the "NavigateTo yahoo.com" step in order to make it compatible with the BaseURL feature. You can do the same for your tests which you've already created.
You can create a separate TestList for each URL against which you need to run a test.

Let me know if you're still having trouble getting this to work!

Best wishes,
Stoich
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
NKG
Top achievements
Rank 1
Answers by
Stoich
Telerik team
NKG
Top achievements
Rank 1
Share this question
or