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.
The first field is the Name this multi-session will be used once saved. The second section shows the possible Session Types. From the Combined Session Type pulldown menu above, choose the Parallel session. Then enter the sessions that should be part of this scenario. The 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 right of the percentage field. And they can be removed by clicking the “-” button to the right of the percentage field.
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.
COPY AND EDIT EXISTING SESSIONS
Once a multi-session is created, it is possible to copy and to edit it.
For a copy, just select the multi-session you want to clone and click on the copy icon, on the top left corner of the table, as shown in the figure below.
Any multi-session can be edited and sessions can be added or removed, percentages and orders can be changed, and also the type of multi-session can be modified.
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.