Testing

The next step is to try out the newly configured system to ensure it works as expected. This is done by instructing Aware IM to create a testing environment for the system. Select the business space version 1.1 in the tree section of the Configuration Tool, right click and select the “Put under test” command from the popup menu. The state of the business version changes to “Under Test” indicating that it is now possible to work with the business space in the testing mode (see the “Testing Mode” section for more on operation and testing modes).

We start a standard web browser, such as Internet Explorer, Google Chrome or Mozilla Firefox, and log into the system by entering the following in the address bar of the browser:

http://localhost:8080/AwareIM/logonAdmin.html

Alternatively we can just select the “Tools/Browser login” menu item of the Configuration Tool menu.

The browser shows the generic login form where we enter the following:

  • Business space: the business name you specified when installing Aware IM. This is the same business name you used when starting the Configuration Tool.
  • Login name: admin. This is the only user registered in the new business space.
  • Password: the password you specified when installing Aware IM. This is the same password you used when starting the Configuration Tool.
  • Test mode flag: check the box to indicate we want to login into the testing mode, not the regular operation mode.

This login address will work if Aware IM is installed on the same computer. See the “Login” section for more login options.

If all parameters are entered correctly, Aware IM will display the main page of our application, as configured in the “Administrator” visual perspective, including the “New Customer” and “Find Customer” items in the menu.

Click on the “New Customer” menu item. Aware IM displays a form for the new Customer object showing fields for the configured attributes. Enter some fictitious, but legitimate data for the new customer and click the “Create” button. The system validates the entered data and registers our first customer. Create another customer and enter a birthday date, which makes the customer too young to be registered. Upon clicking the “Create” button the system should check the ‘Age validation’ rule we specified, give an error message and refuse to register the customer. Correct the birthday field and re-submit the form. In the same way create a few more fictitious customers using different names and birthdays.

Next we will try searching for customers. Click on the “Find Customer” menu item, enter a part of a customer name when prompted and click on the “Search” button. Aware IM should present a table showing the customers whose names contain the text we entered for the search (note that the search is case-sensitive). If you click on the “Edit” button next to a customer name in the query result table Aware IM will display the form with details for that customer. You can make changes and click on the “Save” button to update the customer details. The system will accept the changes only if they pass validation.

Now we can test how our system greets the customers on their birthdays. To do that, make sure of the following:

  • The computer where Aware IM is installed can connect to the mail server, in other words it is possible to send outgoing e-mails from the computer. Typically it means that the computer should be connected to the Internet.
  • Some of the fictitious customers have birthdays on the current date.
  • Those birthday customers have e-mail addresses that we can check to see the e-mails they receive.

We need to check how the system generates and sends greeting emails, but we do not want to wait until seven o’clock in the morning for the process to run. Instead, we can start the greeting process manually via the main menu. Click on the “Standard” menu item to see its sub-menu, and then click on the ‘Start process’ item. Aware IM will run the CongratulateBirthdayCustomers process and inform us when it finishes.

This is what actually happens during the process run. First, it finds all customers with birthdays on the current date. Second, for each found customer it generates an e-mail and personalizes it by replacing the <<Customer.Name>> tag with the actual customer name. Third, it sends the personalized email to each customer.

We now need to check the mailbox for the e-mail address we entered for our test customers to verify that the greeting e-mail has arrived and its contents is correct.

  • Last modified: 2022/09/13 18:15