WHAT ARE PARALLEL SESSIONS?
Often, users visiting a website or an application, do not behave the same. For example, there might be users browsing your site, others downloading a document or an image, others reviewing some documents, filling a form, etc.
So, often a session representing one type of behavior is representing only partly the real load of the system at test.
That’s why parallel sessions can be very useful. Simple sessions can be combined together and treated as a single test scenario. Each individual session (sub-session) represents a (user defined) percentage of virtual users present in the system at the test time. The combined session represents all the virtual users present during the test.
Each sub-session maintains independent information, credentials (if any) and any other data associated to it, and can be run individually or as part of a multisession.
CREATE A PARALLEL SESSION
In order to create parallel sessions (aka multi sessions), at least two sessions need to be already present in the account. A multi session is created by clicking on the SESSION button, located in the navigation bar of the page, and select the Multi Session submenu, as shown in the figure below. The New Multi Session page will open, if this is the first session. If other multi sessions have been created, the Multi Session table will appear. Click the "+" icon to create a New Multi Session.
From the pulldown above, choose the sessions that should be part of this scenario. Initially there are three fields. The first one is the Name this multi-session will be used once saved. The other two fields are next to each other. The pull down menu contains all the sessions that can be added to the Multi-session. The second field represents the percentage of how many virtual users will reproduce that behavior during the test.
NOTE: your total needs to sum up to 100%. A message will show up until the number of sessions add to 100%
Sessions can be added by clicking the “+” button to the left of the SAVE button. Once completed, click the SAVE button.
The new combined session will show up in the Multi Session table. All the sub-sessions that are part of it are listed, together with the percentage of users that they will use during the test.
CREATE A TEST USING PARALLEL SESSIONS
When creating a new test, a multi-session can be chosen from the pull down menu, like any other session. They will be displayed at the bottom of the list, as shown in the figure below.
NOTE!! The traffic level is calculated based on the percentages. Let’s take the example above. If the number of users is 100, 70 of them will execute the NouvolaStress scenario, while 30 will execute the NouvolaTeam one.
If the traffic model is LINEAR RAMP, there is a minimum requirement of 20 users per sub-session. The example above would be fine, since both scenarios have more than 20 users.
If the percentage would have been 85% and 15%, then we will have to increase the traffic level to at least 134 users.
RUN A TEST AND REVIEW RESULTS WITH PARALLEL SESSIONS
Once the Test Plan is saved, they behave exactly as any other plan.
To run click the RUN button.
Results are displayed by sessions, in addition to an Overview visualization.