iTest ReST session and non urlencoded query string
Hi! I am using the rest session and I want to pass the query string as a variable to a POST command. The query string I have is not URL encoded. As a result, the session pushes the non URL-encoded data to the server, which results in a null result from the server. If I replace the variable with the URL-encoded version of the query string, the POST operation completes normally. Is there a way to urlencode the string? I know that TCLLIB has a ncgi package that has a command to do this, but is there a way to do this in iTest?
If my understanding is correct you want to encode the url before using it in the REST session. We can achieve this by using some online url encoding tools say (
http://meyerweb.com/eric/tools/dencoder/). I have followed the below process: 1. Created Web session profile 2. Encoded the url using online tool 3. Stored that encoded url value in a variable(url) 4. Passed the variable to REST session ![alt text] : /storage/temp/4127-encode.png