I came across a Business Process (BP) that requires the uploading of multiple files. For this, the BP in detail, requires that 300 files be uploaded into SharePoint. In order to meet the requirement, the 300 files need to be created prior the load test.
I've figured out the data preparation by creating the files prior the load test. Searching thru the Web, I've got hold of the below bat script and amended it to create the 300 files for the data preparation.
for /L %%i in (1,1,300) do
(
@copy C:\test_folder\OriginalFile.txt NewFile-"%%i".txt
)
Saving it as a bat file and renaming the "OriginalFile.txt" and "NewFile-" to your requirement (if you find it useful). This is not the only way to work with the data preparation (I believed), and another alternative is to create the file during the load test. This will require scripting knowledge of using the system API which hopefully I can discuss it in future.
I've figured out the data preparation by creating the files prior the load test. Searching thru the Web, I've got hold of the below bat script and amended it to create the 300 files for the data preparation.
for /L %%i in (1,1,300) do
(
@copy C:\test_folder\OriginalFile.txt NewFile-"%%i".txt
)
Saving it as a bat file and renaming the "OriginalFile.txt" and "NewFile-" to your requirement (if you find it useful). This is not the only way to work with the data preparation (I believed), and another alternative is to create the file during the load test. This will require scripting knowledge of using the system API which hopefully I can discuss it in future.
1 comment:
Hello,
The Article on Interesting things in Loadrunner,Test gives detailed information about it. Thanks for Sharing the information about the LoadRunner Testing facts. For More information check the detail on the LoadRunner testing here Software Testing Company
Post a Comment