Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Calling .cgi file from script and read dynamically generated values

$
0
0

Hi,

I am doing desktop testing where I need to call .cgi script that will dynamically generate caserun IDS for testcases. I am able to call .cgi script as below.

 

var WScriptObj = Sys.OleObject("WScript.Shell");

 

for example:  path = "http://ip address/tr_new_run_testcomplete.cgi?&environment=Lab&cases=4,5,6,7"

 

WScriptObj["Run"]("path");

 

CaseRun ID created as below.

{success: true, run_id: 35}
Test Case 25: CaseRun ID: 113

I need to get that value of CaseRunID. Need to figure out, 

1) How can I save that page?

2) Can I open it with notepad and read content as string.

After that I need to call other .cgi file to update status of each test case based on CaseRun ID.

 

Thanks,


Viewing all articles
Browse latest Browse all 21061

Trending Articles