Retrieves a unique ID (number) for each current virtual user in a load-test. The ID is 1 for the first virtual user, 2 for the second and n for the nth virtual user.
Kernel.bdh
GetUserId(): number;
The unique identification number of the user.
dcluser user TestUser transactions TGetUserId : 1; dcltrans transaction TGetUserId var nUserId: number; begin nUserId := GetUserId(); write("user ID = "); write(nUserId); writeln; end TGetUserId;
user ID = 1