Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: TrueClientAjaxFirefox protocol can accept to create file & Capture URL in Loadrunner 12.01

$
0
0

Hi,

 

Thanks for replaying

 

I recorded the script using "TrueclientAjaxFirefox" protocol.

 

i want to capture the generated URL and write this URL into "test.txt" file.

 

so i used javascript to capture the url and write these url into txt file, script executing successfully but "URL not writing into "test.txt" file and it not throwing any error on code, it displaying evaluated sucessfully.

 

i am sharing the code, which i used in my script.

 

Javascript code

 

function Minimogrify(currentPageUrlIs)
{

if (typeof this.href != "undefined")
{
currentPageUrlIs = this.href.toString().toLowerCase();
}
else
{
currentPageUrlIs = document.location.toString().toLowerCase();
return currentPageUrlIs;
document.write(currentPageUrlIs);
}

function WriteLine()
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var fh = fso.OpenTextFile("C:\\Users\\makarri\\Documents\\VuGen\\Scripts\\Test.txt", 8, True);
x=document.getElementById("currentPageUrlIs").value;
fh.WriteLine(x);
fh.Close();
}

}

 

 

 

I want to know in TrueclientAjaxFirefox Protocol, wen create and write into "test.txt" file. it will accept the code are not.

 

please help me on this.


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>