How to concatenate URL and use the variable/parameter for common part of url
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to concatenate URL and use the variable/parameter for common part of url
Hi,
I have recorded different Keyword tests for different functionality. like for login funcationality i have created login keyword test and recorded script and for logout created logout keyword test and so on. I want to parameterized the URL which had a common part. ex: http://abc.com:8080/login, http://abc.com:8080/logout. I want to do this because whereever server changes i dont need to change everytime in the script just i will change the value of parameter/variable.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you read the URL from property file using groovy and than replace the part that is changing on basis of some condition before setting the final URL.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can store the base URL in the variable, say -
baseURL = "http://abc.com:8080/"
Then use it in your test as a Code Expdession parameter like:
Project.Variables.baseURL + "login"
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how can i do this in mapped properties?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
