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

Using multiple test settings

6 Answers 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pablo
Top achievements
Rank 1
Pablo asked on 08 Nov 2010, 09:02 PM
Hello,

I'm new to the Telerik forums but have been using Telerik for the last two years. Great product! I am however, a little frustrated using WebUI- so far over the last two days that I've been using it it seems like an absolutely fantastic tool, but I can't find a whole lot of documentation. I want to have this demo ready as it will help determine the decision to buy this tool.

So here is my problem- I build a whole test and it seems like I'm was having trouble with the base URL- it was like it created a whole new set of strongly-typed elements if I changed the URL. I still don't know why it does that and it seems like they are in there still, but I finally was able to get it working. (It had something to do with iframes)

My problem now is that I cannot seem to be able to select which .testsettings file to use. I have uploaded some image files for demonstration.

My solutions looks as shown in "clipboard1.jpg". But whenever I select the settings file to use as shown in "SelectSettings.jpg" and run the test (I hit the green run button in VS) it still uses the TestServerTest.testsettings configuration instead of the LocalServerTest.testsettings configuration. I have also attached a picture of these for reference. 




6 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 08 Nov 2010, 10:16 PM
Hello Pablo,

You can also run Visual Studio tests from Test View or the Test List Editor as shown in the attached screenshots. This is actually the recommended method since you have control over which tests will be executed. The Run/Debug button will run everything contained in the project.

So you are selecting which .testsettings to use from the Visual Studio test menu? I am guessing your problem is that the test is not going to the correct URL as you expect, is that correct?

I suspect the real problem is your test isn't correctly setup to use the Base URL setting. During recording make sure you have properly set the Base URL property as shown in the base-url-recording-option screenshot. When you do that your NavigateTo steps should get recorded slightly differently as shown in the base-url-navigate-step screenshot. If they are not appearing like this, you can manually modify them. Split them so that they have both a BaseUrl property and a NavigateUrl property. The BaseURL property of the test step is what get's over ridden by the BaseURL setting in the .testsettings file.

After reviewing your setup, please let me know how it's going for you. If you're still having problems we'll dig further into it for you.

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
Pablo
Top achievements
Rank 1
answered on 08 Nov 2010, 10:34 PM
Cody,

Thank you for your reply.

Yes- you are right in that my problem is that the correct base URL does not get used. However- though I may be mistaken- I doubt the problem is in how the test project is set up.

I say this because I can actually get the the test project runs to run the URL that I want by changing the base URL in TestServerTest.testsettings as shown in the picture I attached. I can set it to http://localhost:60712 or http://192.168.114.17/INCINQ_Dev and the test project will run correctly- however, I don't want to have to change the base URL there- I was hoping I can just use different .testsettings files. I was under the impression that is what they are for. I would like to ultimately set up a test list where the same test runs under one URL and then the other.

Please advice.

Regards,
Pablo
0
Cody
Telerik team
answered on 08 Nov 2010, 11:09 PM
Hi Pablo,

First I glad you hear you have done good diagnostics already. Also yes, that's exactly how multiple .testsettings files are supposed to be used. I just tried it again myself and find it's working for me. Let's look at this together via GoToMeeting sometime tomorrow (Tuesday). Let me know what time zone you are in and your availability and I'll setup the meeting. I'm in Austin, TX which is Central Time (GMT -6).

Best wishes,
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
Pablo
Top achievements
Rank 1
answered on 08 Nov 2010, 11:26 PM
Cody, 

I am in Tulsa, OK - so I am CST as well. How does early 9 AM sound like to you?

Thanks,
Pablo
0
Cody
Telerik team
answered on 08 Nov 2010, 11:30 PM
Hi Pablo,

9am Tuesday works fine with me. I have sent the meeting invite via email to you. Remember if you've never used GoToMeeting it takes 2-3 minutes to download and install the little client piece of software.

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
Pablo
Top achievements
Rank 1
answered on 08 Nov 2010, 11:32 PM
Great- Thanks, Cody.

Looking forward to getting this corrected.
Pablo
Tags
General Discussions
Asked by
Pablo
Top achievements
Rank 1
Answers by
Cody
Telerik team
Pablo
Top achievements
Rank 1
Share this question
or