Development: https://web.domain1.com/AppDEV
Test: https://web.domain1.com/AppTEST
Production: https://tools.domain2.com/AppPROD
I'll be recording all tests against the DEV site. Right now, I have https://web.domain1.com/AppDEV in the BaseURL for the project. Should have I have only put https://web.domain1.com ? Or?? Thanks for any help!
~Shelly
9 Answers, 1 is accepted
Check out this KB article. If you have further questions don't hesitate to reach us here!
Regards,Cody
I should have been a little more specific in my question. I have read the KB article and watched TelerikTV regarding BaseURL, but they don't really address my question. The example in the KB article says "http://Server1/MyApplication this step will be recorded as "Navigate to /MyApplication" - the base URL is removed." and gives the example of Server1 and Server2.
My application has two different domain names, and the part after the .com/ isn't consistent:
- Dev: https://web.domain1.com/AppDEV
- Test: https://web.domain1.com/AppTEST
- Prod: https://tools.domain2.com/AppPROD
What do I put in as the baseURL for tests recorded against my DEV environment?
https://web.domain1.com OR https://web.domain1.com/AppDEV
I understand what the KB article was saying, but my environments aren't as straightforward as your example with the consistent /MyApplication after each different server/URL. I put https://web.domain1.com/AppDEV into the settings for my project, but I need someone who knows more about this topic to validate I did it correctly before I record too many more tests. :-)
Did I do a better job of explaining the help I am requesting? Could you update the KB article so it's easier for users with environments similar to where I'm working to understand what to put in the baseURL after we decide the correct info for me to use?
Thanks,
Shelly
the BaseURL should always be the part of the URL that stays constant for all the different locations. In your case:
- Dev: https://web.domain1.com/AppDEV
- Test: https://web.domain1.com/AppTEST
- Prod: https://tools.domain2.com/AppPROD
Set the BaseURL to https://web.domain1.com/AppDEV and record the test against that URL.
A "Navigate to https://web.domain1.com/AppDEV" step will turn to "Navigate to /" in this case.
Now if you want to execute the same test against the URL https://tools.domain2.com/AppPROD, you create a new TestList and set its BaseURL to be https://tools.domain2.com/AppPROD. Now your "Navigate to /" step will get executed as "Navigate to https://tools.domain2.com/AppPROD". Similarly your other steps will be executed against the new BaseURL.
Let me know if you're having trouble getting this to work!
All the best,
Hi Telerik,
We have similar situation. We have automated 300 tests. We never configured base URL at project level or test list level before we automated 300 tests.
We have 2 environments: UAT and Production. We need to run some tests (tests that only read information) on production after each production release for verification. We want to prevent some tests (write / Delete / modify data) on production.
Right now, we use one test that navigates to the specified URL and use that test as a step in all tests to navigate. This is not efficient way of changing environments, as we often run tests on production that could delete / update / write data.
We are looking for solution. How can we restrict test list to run only on UAT environment?
Unfortunately since you have not used BaseURL when building your automation the only option is to manually edit all the tests. You can set a baseURL now so you can use it properly in the future.
Thank you for your understanding.
Regards,
Ivaylo
Telerik
Test Studio Trainings
Hi Ivaylo,
It would be good to have this as feature in Telerik Test Stdio to control test against different environment.
I also suggest one more feature where tester can add different environment to choose from for test execution and attribute selection for each environment.
For example, Test has attribute field and tester can add attributes to each test case. For example, Add Read attribute to Test-A, Read attribute to Test-B, Write attribute to Test-C, Write attribute to Test-D.
Environment-UAT has mapping with Read, Write attribute. So when UAT is selected as environment to run test against, all tests that has Read and Write attribute can be executed.
Environment-Production has mapping with Read attribute. So when production is selected as environment to run test against, all tests that has Read attribute can be executed. Tests with write attribute can be skipped.
Thank you for the input and the feedback, it will be considered in the future.
Regarding the feature requests please note that even you can log a feature request from now on using our feedback portal here. You can use the same telerik account for login.
Regards,
Ivaylo
Telerik
Test Studio Trainings
In my case My application URL changes as per the different releases (http://abcd/efg/main.aspx) next time it may be(http://xxxx/xxx/main.aspx) so will identifying logic can sort this out by just using relative path and query or identification logic is only to "it's just a way to simply your test project and make it easier to use."
Note: For some pages title is also changing after releases.
I have already created few scripts on earlier version but now these scripts are failing because of unable to identify the frames.
so how the frames are affected by this parameters (Page URL, Title)
How page URL and Titles are used in finding element logic.
What should be my approach to take the maintenance to minimal .
Any guidlines on this will be highly apreciated
Please read this article dedicated to BaseURL where you'll find all the answers to your questions. At the end it is well explained how to deal with frames.
Regards,
Ivaylo
Telerik
Test Studio Trainings