Login VSI supports 3 types of segments:
This article will go into more detail about the finalize segment.
The purpose of the finalize segment is to allow actions to be executed once the workload is about to end. Typically segments are looped. The prepare segment and the finalize segment only run once. The prepare segment runs at the start of the test, while the finalize segment only runs at the end of the test.
Normally a user would adhere to the following pattern.
prepare > segment 1 > segment 2 > segment 3 > segment 4 > (loop) segment 1 > segment 2 > etc.
The finalize segment allows a workload to be designed with actions in mind that only need to be completed once. Think of logging out of applications that require logging off before the user logs off or saving data at the end of the workload.
The finalize segment is a segment just like any other segment. The only requirement of the segment is that it is placed at the end of the workload file. Within the segment all the normal Login VSI workload commands can be used.
Please note that the logoff command is executed after the finalize section has been run. For example:
prepare > segment 1 > segment 2 > segment 3 > segment 4 > (loop) segment 1 > segment 2 > finalize segment > logoff command.
Article is closed for comments.