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

After the URL changed , the execution failed.

9 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ibrahim Imam
Top achievements
Rank 1
Ibrahim Imam asked on 09 Jun 2010, 10:47 AM
I create some web tests , after the URL changed , i modified it in my steps the and run my tests , the new url opened "that's ok" ,
but i face another problem : all primary target changed
ex:
in the login page i have username textbox:

the old primary target =  /NegPoint/FrameFrmNegPoint/CphContentPageTxtUsernameText

now the primary target = /NegPoint_3/FrameFrmNegPoint/CphContentPageTxtUsernameText

so the the first segment of the id that is different ,the execution failed.



9 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 09 Jun 2010, 05:44 PM
Hi Ibrahim Imam,

In scenarios like this we recommend using the BaseURL feature. There are two parts to this feature:

  1. Setting the BaseURL for recording
  2. Setting the BaseURL to actually use during playback

The recording BaseURL modifies how NavigateTo steps and elements are recorded in Elements Explorer. The setting is controlled in the User Settings from the Project tab:

  1. On the Project click Show Settings
  2. Click the Recording Options tab
  3. In the BaseURL enter the URL of the host you will be recording your test against (e.g. http://qa.testserver_01)
  4. Click a different property just so that the above change is stored
  5. Click OK to save your change

Now record your test.

During playback you want to create a test list, place your newly recorded test in it, and modify the BaseURL property for that test list.

  1. On the Test Lists tab select the test list you want to change the setting for
  2. Click Edit Settings in the ribbon bar
  3. Scroll down to BaseURL
  4. Enter the URL of the host you want the test list to actually use (e.g. http://stage.testserver_02)
  5. Click OK to save the change

Now when you go to run that test list, it will use the modified BaseURL at runtime instead of the URL it was recorded with.

You can still take advantage of the BaseURL feature on already recorded test.  Modify the URL of the NavigateTo steps e.g. from http://myserver.com/default.aspx to ~/default.aspx. Then set the BaseURL of the test list and I previously described.

Hope that clarifies this feature and how to use it. Let me know if you have further questions on this.

Greetings,
Cody
the Telerik team


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ibrahim Imam
Top achievements
Rank 1
answered on 29 Jun 2010, 03:39 PM
Hello Cody,
After changed the BaseURL , My old tests still not working. Please help me , because i took long time to created them.
0
Cody
Telerik team
answered on 30 Jun 2010, 10:09 PM
Hi Ibrahim Imam,

Sure. I'd like to look at this problem on your computer via GoToMeeting. Let me know what timezone you are in and your availability and I'll setup the meeting. I'm in Austin, TX which is Central Daylight Time (GMT -6).

Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 01 Jul 2010, 07:27 AM
Hi Cody,
Firstly , Thanks for your help .

I'm in Cairo,Egypt . and my Central Daylight Time (GMT +3).
My availability from Sunday to Thursday  (7:30 AM to 4:30 PM) .

* If these times not stable for you , please define an appointment then i will check and till you.

Thanks

0
Cody
Telerik team
answered on 01 Jul 2010, 04:07 PM
Hello Ibrahim Imam,

Looks like Tuesday next week is the soonest our schedules are closest to meet (we're closed Monday for holiday) due to the 9 hour time difference. I sent a meeting request for 9am here, 6pm there on Tuesday. I choose as many numbers as I could find near Egypt I could think of. Unfortunately there is no conference call number for Egypt.  Here's a copy of the invite:

1.  Please join my meeting.

https://www2.gotomeeting.com/join/687620410

2.  Use your microphone and speakers (VoIP) - a headset is recommended.  Or, call in using your telephone.

Denmark: +45 69 91 88 65

Finland: +358 942 415 781

Germany: +49 (0) 898 7806 6468

Italy: +39 0699369881

Netherlands: +31 (0) 208 080 382

Norway: +47 21 03 58 99

Spain: +34 931816669

Sweden: +46 (0) 852 503 499

United States: +1 914 339 0034

Access Code: 687-620-410

Audio PIN: Shown after joining the meeting

 

Meeting ID: 687-620-410

 

GoToMeeting®

Online Meetings Made Easy™



All the best,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 04 Jul 2010, 12:37 PM
Hello Cody,
This appointment agreeable for me.

Thanks.

0
Cody
Telerik team
answered on 06 Jul 2010, 03:35 PM
Hi Ibrahim Imam,

It was nice to have the chance to talk to you this morning. I am sorry we were not able to solve your problem right away. Here are the steps we will take together to get this resolved:

  1. Download our current version which is 2010.1.5.18.
  2. Make a backup copy of your current solution.
  3. Uninstall your current version (2010.1.4.12).
  4. Install the new 2010.1.5.18 version.
  5. Try your L1 test again to see if it fixes your BaseURL problem.
  6. If it still does not work as expected then put your entire test project into a .ZIP file and attach it as a file to a new support ticket.

Thank you for your patience while we work together to get this resolved for you.


Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 07 Jul 2010, 10:39 AM
Hi Mr Cody,
The problem solved now. "THANKS"
I followed these steps then replaced the new URL in some frames (controls) in the Element explorer.
Thanks for the helpful and precious meeting.

* but unfortunately after the upgrading , there are more errors and warnings when build the project , so i will create a new ticket by this issue
0
Cody
Telerik team
answered on 07 Jul 2010, 04:09 PM
Hello Ibrahim Imam,

That's great news! Thank you for the feedback. I see your new support ticket for your upgrade problems. Thank you for separating the new issue from this one. I will begin work on this new problem for you.

Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ibrahim Imam
Top achievements
Rank 1
Answers by
Cody
Telerik team
Ibrahim Imam
Top achievements
Rank 1
Share this question
or