The SMP (SAP Mobile Platform) protocol enables you to create and replay .NET based scripts using files that have been generated by SMP, formerly known as SUP. This task describes the steps to create an SMP script.
Although .NET-based and Java protocols support creating threads, we recommend that you do not use background threads in real load testing scenarios because:
Threads can degrade tests scalability.
Threads can affect performance measurements.
The utility functions' behavior is undetermined if called from any thread except the Vuser main thread which runs the vuser_init, Action, and vuser_end actions. This applies to all functions named lr*.
To create an SMP script you will need to record a business process with SMP, a platform that is provided by Sybase, an SAP company. The recording generates the following files:
Create an SMP (SAP mobile Platform) script
- Select New Script and Solution > SMP (SAP Mobile Platform).
Copy the generated .cs files into the script folder.
Note: The recording mechanism for SMP scripts is disabled.
Save, close and reopen the script.
Add the location of the SAP.Mobile.LoadRunner.dll file using the Replay > Runtime Settings > .NET> Shared DLLs view.
Note: The SAP.Mobile.LoadRunner.dll has been developed and is maintained by Sybase, an SAP company.
Generated .cs files can include objects from external .dlls. To successfully replay the script, include a reference to these .dlls in Runtime Settings > .NET > Shared DLLs.
- Replay the script. For details, see Debug .NET Vuser scripts.