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

542 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

FIGURE 23-6 The Command window

Having learned about the basics of debugging an application, you can test the SkyShark Airlines application. The following section discusses how to test the Web site developed for SkyShark Airlines.

Testing the Application

After creating the application, you need to test the application. Testing enables you to verify that your application is secure and running smoothly. In addition, testing the Web site ensures that there are no dead links in your Web site. You can now test the Web site for SkyShark Airlines.

While testing the application, you will log in as three different users and test the functionality associated with each of the users. To start with, you will log in as the network administrator. To do this, perform the following steps:

1.Execute the application. The default.aspx page appears as shown in Figure 23-7.

FIGURE 23-7 The default.aspx page

DEBUGGING AND TESTING THE APPLICATION

Chapter 23

543

 

 

 

 

2.In the User Name box, enter the user name as admin. The admin account is created by default when you create the application.

3.In the Password box, enter the password as password.

4.Click on the Submit button. The ManageUsers.aspx page appears, as shown in Figure 23-8. This page helps the network administrators to add or delete users.

FIGURE 23-8 The ManageUsers.aspx page

5.Next, you will add a new user to the application.This user will be added as a business manager. To do this, enter the following details on the form to add new users:

User Name: RobertB

Password: Password

Confirm Password: Password

Role: BM

6.Click on the Submit button. A message appears, as shown in Figure 23-9, indicating that the user was successfully added. Now you will log on using the credentials of this new user and test the functionality provided to a business manager.

544 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

FIGURE 23-9 Adding a new use r

7.Click on the Logoff link. The Logoff.aspx page appears as shown in Figure 23-10.

FIGURE 23-10 Logging off the application

DEBUGGING AND TESTING THE APPLICATION

Chapter 23

545

 

 

 

 

8.Click on the Click here to logon link to enter the application as a business manager.

9.Enter the username and password that you entered in Step 5, and click on the Submit button. The Addfl.aspx page appears as shown in Figure 23-11. This page helps a business manager to add new flights. In addition, a business manager can generate various reports.

FIGURE 23-11 The page to add new flights

10.Click on the Reports link. The Reports.aspx page appears, as shown in Figure 23-12. A business manager can use this page to view different reports.

546 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

FIGURE 23-12 The page to view reports

11.Click on the second Generate button to generate the report for the top 100 customers. The report appears as shown in Figure 23-13. You will now log in as a line-of-business executive.

FIGURE 23-13 The report generated by the Web site

DEBUGGING AND TESTING THE APPLICATION

Chapter 23

 

547

 

 

 

 

 

 

12.Click on the Logoff link. The Logoff.aspx page appears.

13.Click on the Click here to logon link to log in to the Web site. The default.aspx page appears.

14.In the User Name box, type the username as meetag.

15.In the Password box, type the password as password.

Click on the Submit button. The CreateRes.aspx page appears as shown in Figure 23-14.

FIGURE 23-14 The CreateRes.aspx page

16.In the Flight Number box, enter 0735.

17.Click on the Next button.The details of the flight appear, as shown in Figure 23-15. You may need to scroll down.

548 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

 

 

 

Y

 

 

L

 

 

F

 

 

M

 

 

A

 

 

E

 

FIGURE 23-15 The flight details

 

 

18.

T

 

 

In the Customer Name box, enter John Smith.

19.

In the E-Mail ID box, enter JohnS@xyz.com.

20.

Click on the Create Reservation button. A ticket is issued to the cus-

 

tomer in the Ticket.aspx page, as shown in Figure 23-16.

FIGURE 23-16 The ticket issued to a customer

Team-Fly®