CBleunven
7 years agoContributor
Accessing TC documentation for previous version
Hi,
I would like to access to the documentation of previous Test Complete version. How is this possible ?
Thank you for help,
Christophe
You can run this script online
def str = 'https://whatevs.azurewebsites.net/path?token=eyJ0eXAiOiJKV1Qi&value=123456789' def map = new URL(str).query?.split('&').collectEntries{ [(it.split('=').first()): it.split('=').last()]} log.info map.token log.info map.value
You can do this way also:-
def fullURL = "https://whatevs.azurewebsites.net/?token=eyJ0eXAiOiJKV1Qi&value=123456789"; String[] val = fullURL.split('&') for (String exp : val) { log.info exp.split('=')[1] }
It's just a suggestion. But nmrao solution would be the best approach to use proper groovy and coding standards.