

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Windows Explorer or Command Prompt
I have a requirement to generate a vugen script checking a xml file present in a UNC path and then open the xml file to check for a time stamp.What is the easiest way to do it.
I tried recording both cmd and windows explorer using windows socket but it didnt work.
Any suggestion will be appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
When you mention it didnt work, do you mean no events where recorded? If that is the case this may be all client side activity so no events will be generated. You could use a GUI protocol like RDP to perfom this.
Regards,
Mario M.
If you are customer you can try posting on our internal forums for more personalized support.
LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum
Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer
How to:
http://www.youtube.com/watch?v=4ChlysWupWM
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
We really dont want to do the RDP protocol as this is a critical server and security wouldnt allow login to this server frequently.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
You may choose another way to do this. Write some C code to get the useful info of the file from the UNC path, and use loadrunner to load the dll and get the result from your dll.
Please refer to the API lr_load_dll.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Action()
{
long downloaded;
char *buffer;
if ((downloaded=fopen("\\\\shared_drive\\test\\test.xml","r")) == NULL )
{
lr_error_message("Cannot open \\shared_drive\test\test.xml");
return 0;
}
else
{
buffer=(char*)malloc(500000);
while (!feof(downloaded))
{
fread(buffer, sizeof(char), 500000, downloaded);
}
lr_error_message("%s",buffer);
}
lr_save_string(buffer, "xml_page");
lr_error_message("xml page content %s",lr_eval_string("{xml_page}"));
return 0;
}