Creating a Session ID to identify test results

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

a) Creating a custom test with Session ID option

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


Creating a custom test with Session ID option

Step 1:

Click the Publish a new test link in the Tools section of the Testing tab, as shown below.

Step 2

Click the On a web page button as shown below:

Step 3

Choose either a pre defined test or a custom test you have previously created.

Step 4

Choose the Session ID Web Page option, as shown below. This instructs the applet to ask the user to enter a session ID name, as will be shown later.

Step 5

The next step is whatever you prefer. Various templates are available, as shown below, choose the one you would like to move onto the next stage. If you are unsure just choose the default test.

Step 6

Enter a publish name. This name will be used to access the page that contains the new applet. When you click the submit button the page will be created and you will be shown a link that can be used to access the page.

Step 7

When anyone clicks the start button for the newly created applet they will get a session ID box, as shown below. The user simply enters a name and clicks the OK button. The test will then run as usual and post results to the MyConnection Server database. When accessing the results you will see the name entered in the session ID column. This makes it much easier to identify one test from another. You can also perform searches by Session ID, again making result lookups much easier.


Adding a parameter directly into the applet HTML code

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 below. The exact code may vary depending on configurations and test types.

<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" archive="myspeed.jar,/myspeed/plugins.jar" width="600" height="400">
<param name="testspecid" value="-2">
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 this:

<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" archive="myspeed.jar,/myspeed/plugins.jar" width="600" height="400">
<param name="testspecid" value="-2">
<param name="SID" value="Enter name">     <------ Session ID Code added
Java is required to view this applet
</applet>

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 this when added:

<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" archive="myspeed.jar,/myspeed/plugins.jar" width="600" height="400">
<param name="testspecid" value="-2">
<param name="SID" value="*speedtestnewyork">     <------ Session ID Code added
Java is required to view this applet
</applet>

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.

 

Visualware Home | Contact Us | About Us