Support Overview

Tutorials

Client API Usage Examples

Upgrade Information

FAQ

New Release History

You are here:   Visualware >   MyConnection Server >   Support >   Tutorials >   Creating a Session ID (SID) to identify test results

Creating a Session ID (SID) to identify test results

There are two main ways to add a session ID to a test.

a) Add a User-identifiable Session ID string to a published custom test

b) Adding a parameter directly into the applet HTML code.

 

Add a User: Step 1

From the MCS Main Menu, Select Tools, View Published Tests.

Step 2

For the Brower test that you want to modify, click the corresponding link the Configuration column.

Step 3

In the 'Modify MC Applet Configuration' page, click the Show global applet options, then Reporting Options.

Step 4

Scroll down to Session ID Reporting, enter the SID prompt text, then SAVE.

Adding a Parameter: Step 1

The applet code for any MyConnection Server applet will appear in a web page within <applet> tags.

An example of typical code is shown on the right.

The exact code may vary depending on configurations and test types.

<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" archive="/myspeed/myspeed_s_8.jar,/myspeed/plugins_s_8.jar" width="600" height="400">
<param name="testspecid" value="-2">
<param name="permissions" value="all-permissions"></param>
Java is required to view this applet </applet>

Step 2

When adding the Session ID parameter you have to decide whether you want the user to choose their own Session ID or if you want to make the session ID un editable.

Firstly, the choose their own method. The HTML line you need to add is:

<param name="SID" value="Enter name">

The value= entry is what the user will see when prompted. Another example would be "Please enter a unique ID?".

So with this line added the applet code may look like the code on the right (top).

Secondly the un editable option. This simply requires you to choose a session ID and place a "*" before it. An example is shown below:

<param name="SID" value="*speedtestnewyork">

With the HTML line shown above any test performed will be tagged with the session ID speedtestnewyork.

This will not be editable by the user. Again, the applet code will look something like the code on the right (bottom).

Automatically Pass a Unique Identifier for the SID

The un-editable SID option using the * can be combined with the use of JavaScript in the web page to automatically pass a unique identifier for each user, such as an authenticated logon ID or username.

<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" archive="/myspeed/myspeed_s_8.jar,/myspeed/plugins_s_8.jar" width="600" height="400">
<param name="testspecid" value="-2">
<param name="permissions" value="all-permissions"></param>
<param name="SID" value="Enter name">
Java is required to view this applet </applet>


<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" archive="/myspeed/myspeed_s_8.jar,/myspeed/plugins_s_8.jar" width="600" height="400">
<param name="testspecid" value="-2">
<param name="permissions" value="all-permissions"></param>
<param name="SID" value="*speedtestnewyork">
Java is required to view this applet </applet>

 

MyConnection Server

Home
Online Testing Portal
Download
Purchase
Resources
Support

Visualware Products

VisualRoute
eMailTrackerPro
Visual IP Trace

   

© Visualware Inc. 2017 - All Rights Reserved