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

URL Rewriting verfication

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason Pritchard
Top achievements
Rank 1
Jason Pritchard asked on 27 Jun 2010, 01:57 PM
Assert.IsTrue(ActiveBrowser.Url == "http://dev.somesite.com/search"); 
Hello

We use URL Rewriting and I am triing to figure out how to see if the current page has the correct URL Rewriting rules. 

I have attempted this in a code step as follows but it is always failing. 

Any suggestions on what is wrong. I tried to verify this in the QA edition but I am unable to get the messagebox.Show to work as suggested in a previous step. Any idea on how we can debug this. 

thank you 


2 Answers, 1 is accepted

Sort by
0
Missing User
answered on 28 Jun 2010, 05:39 PM
Hello Jason,

Thanks for the post and question. Would it be possible to use a 'Wait For Url' step from the '+ More...' drop down in the Record Tab? The step should wait for the Url to change in the browser.

Also, I forgot to mention in my last post that the System.Windows.Forms dll would be required. You can add it to your project via the:

Project Tab -> Settings -> Script Options -> Add Reference...

You can then add the using System.Windows.Forms;

when you click the 'Class View' in the Record Tab.

Please see the attached screenshots for reference.

Best wishes,
Nelson Sin
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
Missing User
answered on 01 Jul 2010, 04:15 PM
Hello again Jason,

Just wanted to check back to see if the 'Wait For Url' step works for you.

Best wishes,
Nelson
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
Jason Pritchard
Top achievements
Rank 1
Answers by
Missing User
Share this question
or