Testing a Web site
Once you have created your Web site, you need to test the Web site to ensure that all of the navigation and external links work correctly.
Prerequisites:
- Create or import a Web project.
- Create a Web site.
Testing your Web site is different than previewing a Web page. The preview tab will enable you to see how the design will look in a Web browser; however, testing the Web site will allow you to experience the dynamic aspects of the Web pages are they would work when running on a server.
To test your Web site, you can use the default test environment provided with this product called the WebSphere test environment. The WebSphere test environment is a simulated server.
To test your Web site using WebSphere test environment, do the following:
- Expand the Web project that you want to test.
- Right-click the Web project or a file within the Web project (such as a JSP file, servlet, or HTML file) that you want to test.
- Select Run on Server. The Server selection wizard opens.
- Follow the instructions in the wizard to create the server test environment. The server tools automatically do the following tasks for you:
- Create a server project with Servers as the default name.
- Create the server.
- Create the server configuration.
- Set the server to use the server configuration.
- Add the EAR project containing your Web project to the server configuration.
- Start the server.
- Display the file in the Web Browser.
Once you have tested your Web site, and have made any necessary corrections or changes, you can then deploy your Web site to a Web server. For more information on publishing your Web application to a server, refer to the online help topic Publishing applications to a server.
Related tasks
Web site development
Defining a Web site strategy
Designing Web sites
Creating or importing Web pages and Web resources
Publishing a Web site
Maintaining Web sites