Export (0) Print
Expand All

Test Environment Setup

Aa751093.note(en-us,MSDN.10).gifNote:
This topic describes functionality that will be obsolete. This functionality is provided only to support legacy applications. Live Connect incorporates features that provide equivalent functionality.

To set up a test environment, you will need:

  • Your Windows Live Messenger Activity for testing. An application consists of an HTML file and any associated files, such as images, style sheets, scripts, or ActiveX controls.
  • A Web server. For testing purposes, any type of Web server will work. The only requirement is that the application be accessible with an HTTP request.
  • For single-user applications, one computer to run the Messenger client. It can be the same computer that is running the Web server.
  • For multiuser applications, two computers are required to run Messenger, because only one client per computer can sign in at a time.

In the following example, the sample application, Tictactoe.htm, is tested.

  1. Copy the application files to the Web server. In this example, the server name is ls_test_server, and the files are in a Web directory called 3t. The Web structure of the files looks like this:
    /3t/Tictactoe.htm
    /3t/images/redo.bmp
    /3t/images/redxanim.gif
    /3t/images/redx.bmp
    /3t/images/redxanim.gif
    
  2. Customize the configuration file called MSGRP2P.xml, as described in the topic The Local XML File. Open the XML file and find the element URL. This element specifies the address from which the application can be loaded.
  3. The address must be in HTTP format. For example:
    <url>http://ls_test_server/3t/Tictactoe.htm</url>
    <name>Tic Tac Toe</name>
    
  4. For a complete list of the elements in the MSGRP2P.xml file, see The Local XML File.
  5. Copy the file MSGRP2P.xml to the program directory in which Windows Live Messenger is installed. Typically, this directory is C:\Program Files\Windows Live Messenger\. The next time Messenger opens a Conversation window, it checks for the existence of the XML file. If it exists and contains valid information, a menu item is added to the Actions menu of the Conversation window. The menu item is called Run (Name), where (Name) is the contents of the Name element in MSGRP2P.xml.
  6. Tictactoe.htm is a multiuser application, so two computers must be set up to test it. Both computers must have a copy of MSGRP2P.xml in the Messenger program directory.
  7. Sign in to Messenger on both test computers.
  8. From one computer, send an instant message to the contact who is signed in on the other computer.
  9. On the other computer, click the instant message. A Conversation window is open on both computers.
  10. On the Actions menu of either computer, click Run Tic Tac Toe to send an invitation.
  11. On the other computer, accept the invitation.
  12. Both computers display Messenger Conversation windows running Tic Tac Toe in the Activity Window.

If the menu item Run Tic Tac Toe does not appear on the Actions menu, Messenger could not load the MSGRP2P.xml file. Verify that the file is in the correct directory and that it contains valid XML.

If either computer displays the Activity window but does not load the application, the URL specified in the MSGRP2P.xml file may not be valid. Verify that the URL is valid and reachable by the computer.

Activities use event handlers and methods that are only available in the Activity environment. If you double-click an Activity file and its HTML file association causes it to display in an Internet browser, the browser may show scripting errors.

Only one Activity can be tested at a time. To test another application, change the URL and Name elements in the MSGRP2P.xml file on both computers to correspond to the new application.

Show:
© 2014 Microsoft