Reads a file in a fixed length ASCII format into memory. The function is equivalent to the FileFixedLoad function except that the pointer to the current row is maintained globally between virtual users at one machine. That means that all virtual users of the file at one machine use of the same global row pointer for the current row. Therefore you can sequentially access a file from multiple virtual users.
If the file name includes a directory name, the file is opened in the specified directory. Otherwise, Silk Performer searches for the file in the directory where the test script is located, in the data directory, in the results directory and in the project directory.
If you are going to use remote agents for the load test, you should store your data files in the Data directory or in the directory where the test script is located. Note that in any case you have to add the data files to your load-testing project.
Kernel.bdh
FileFixedLoadGlobal( out hFile : number, in sFileName : string, in sFormatString : string): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hFile | Variable receiving the file handle used to access the file |
sFileName | Specifies the path and file name of the file to read. If you specify a file name without path information, Silk Performer searches for the file in the user data directory specified in the Directories tab of the System Settings - Workbench dialog. |
sFormatString |
Specifies the format of a row in the file. For each column in one row you specify the starting position and the ending position of the column (beginning with 1 as the first position in the row). You need not to specify all columns in a row, also you can specify columns that overlap with other columns. Syntax of the format string Format = Startpos ".." Endpos { ";" Startpos ".." Endpos }. |