I have automated a batch file through load runner script which writes the data in a notepad file.
Now I want to pass that written data in another load runner script as a parameter.
The data written from batch file looks like this:
USING API KEY : Android
Base URL = /user/authorization
HEADERS :
accessKey = 45k907its35dooeo182dm0guy8k0dv8o
signature = Tdo0ZBfZazTvYd8UwmHT+haq2vM=
timestamp = 1455397355435enter
But when I want to read and pass the parameter in another script I just want to pass the access key
.
How do I capture only access key from the batch file output
Like this :
@Echo off
for /f "tokens=1,2 delims==" %%a in (data.txt) do If /i "%%a"=="accessKey " set "$Key=%%b"
Echo KEY ==^> [%$Key: =%]