Unit Testing


To test the Instant Technical Support application:

  1. Download and install the free implementation of the Jabber server from the following URL:

    http://www.jabberstudio.org/projects/ejabberd/releases/view.php?id=610

  2. Set the path of the bin directory of J2SDK by executing the following command at the command prompt:

     set path=%path%;D:\j2sdk1.4.0_02\bin; 
  3. Set the classpath of the lib directory of J2SDK by executing the following command at the command prompt:

     set classpath=%classpath%;D:\j2sdk1.4.0_02\lib; 
  4. Copy the ChatMainApplet.java, welcome.html, signuppage.html, loginpage.html, and chathtml.html files to a folder on your computer. Use the cd command at the command prompt to move to the folder in which you have copied the Java files. Compile the files by using the following javac command, as shown:

     javac *.java 
  5. Create a virtual directory named TechnicalSupport in a Web server.

  6. To run the Instant Technical Support application, specify the following uniform resource locator (URL) in the Web browser:

     http://localhost/TechnicalSupport/welcome.html 
  7. The home page of the Instant Technical Support application appears. Click the Sign up button to signup for a new account in the Instant Technical Support application. The Signup page appears.

  8. Enter data in the fields of the Signup page, as shown in Figure 5-6:

    click to expand: this figure shows the fields of the sign up page filled by an end user.
    Figure 5-6: The Signup Information

  9. Click OK to create a new account. The user interface of the Instant Technical Support application appears.

  10. Specify the query text in the bottom text area provided by the Instant Technical Support application, as shown in Figure 5-7:

    click to expand: this figure shows the query text specified by an end user.
    Figure 5-7: Specifying the Query Text

  11. Click the Send button. The Instant Technical Support application sends the query to the technical support executive.

  12. The specified query appears on the user interface in the upper text area, as shown in Figure 5-8:

    click to expand: this figure shows the technical query sent by an end user to the technical support executive.
    Figure 5-8: Sending the Query

  13. The technical support executive answers the query and sends the response back to the end user, as shown in Figure 5-9:

    click to expand: this figure shows the response sent by the technical support executive to the query specified by an end user.
    Figure 5-9: Receiving the Response for the Specified Query




Developing Applications Using Jabber
Developing Applications Using Jabber
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 68

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net