Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Microsoft C# Professional Projects - Premier Press.pdf
Скачиваний:
177
Добавлен:
24.05.2014
Размер:
14.65 Mб
Скачать

CREATING THE CUSTOMER TRANSACTION PORTAL

Chapter 22

533

 

 

 

 

This listing completes the coding part. I will now discuss the testing of this application.

Testing the Application

To test the application, perform the following steps:

1.Execute the application. The wbFrmSkyShark.aspx Web form appears as shown in Figure 22-2.

FIGURE 22-2 The home page

2.Click on the View New Flights link. DataGrid1 appears, as shown in Figure 22-3, containing the appropriate records.

534 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

FIGURE 22-3 The details of new flights

3.Click on the View Ticket Status link. The corresponding screen displays two text boxes and a button, as shown in Figure 22-4.

FIGURE 22-4 The screen to check the ticket status

CREATING THE CUSTOMER TRANSACTION PORTAL

Chapter 22

535

 

 

 

 

4.Enter test values in both the text boxes and click the Submit button. If both the values are correct, the status is displayed. Otherwise, an error message is displayed.

5.Click on the View Flight Status link. The corresponding screen displays a text box and a button, as shown in Figure 22-5.

FIGURE 22-5 The screen to check the flight status

6.Enter an appropriate value in the Flight Number text box and click the Submit button. If the provided value is correct, the booking status of the flight is displayed. Otherwise, an error message is displayed.

7.Click on the Confirm Reservation link. The corresponding screen displays two text boxes and a button, as shown in Figure 22-6.

536 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

FIGURE 22-6 The screen to confirm rese rvation

8.Enter some appropriate values in both the text boxes and click the Submit button. If both the values are correct, then the reservation is confirmed. Otherwise, an error message is displayed.

9.Click on the Home link. The home page appears.

This completes the testing of the customer portal of SkyShark Airlines.

Summary

In this chapter, you learned how to create the customer transaction portal of SkyShark Airlines. Next, you learned about the interface of the form and the programming logic to add functionality to the form. Finally, you examined the steps to test the application and ensure that it operates correctly.

Chapter 23

Debugging and

Testing the

Application