“Script for creating the data”
Yes, this would be a C function, not a decoupled script
“Script for uploading the file script”
Yes, this would likely be a second function or the main body of the script.
Int Build_CSV_File(char * filename)
{
// Your ‘C’ code to write our your file
Return 0;
}
Int Upload_MyFile(char * filename)
{
// Your recorded upload which includes a relative path to the directory
// of your virtual user while executing
Return 0;
}
Int Cleanup_MyFile(char * filename)
{
// Your code to delete the file
// Programming is just like camping. When you pack something in of temporary use
// then you should pack it out, or in this case delete the file which you just created to
// avoid filling your file system
Return 0;
}
Action()
{
Char * myfilename= lr_eval_string(“{group_name}_{virtual_user_number}_{iteration_number}.csv”);
Build_CSV_File(myfilename);
Upload_MyFile(myfilename);
Cleanup_MyFile(myfilename);
Return 0;
}
Time to pick up the same set of books I recommended to my own brother and uncle when they were learning ‘C,’ C for Dummies. Aside from the title which is problematic for a lot of people, the books are quite good for those who need refinement of their C skills. The question asked seems to indicate that you may fall into this group
James Pulley
=================================================
Trained. Mentored. On shore. Off site. Start Saving money today
on every hour of LoadRunner services needed by your organization.
http://www.loadrunnerbythehour.com/PricingMatrix beginning at
$19.95 USD
=================================================
Sure, I’d be happy to. Please contact me with your full requirements and I will be happy to provide you a quote for services to complete your scripts for you on a one-off basis. Or, you may refer to my public fee schedule for longer term services located at http://www.loadrunnerbythehour.com/PricingMatrix .
James Pulley
===============================
http://www.LoadRunnerbythehour.com
===============================