Testapp Guide
Table of contents
Introduction
The Testapp is an internal WebApp specifically for testing the MVCS infrastructure. It consists of several pages:
- Unit Test
- Visual Test
- Aircraft
- Procedures Test
- Settings
- Metar
- Popup Test 1
- Popup Test 2
Each page tests a different function.
Aircraft page
The Aircraft page is a basic page to define aircraft like the Aircraft pages on normal POH Performance aircraft type apps. However, Testapp defines two test models: Mtype 1 and Mtype 2, each supporting varying options that have conflicts. Mtype 1 has two different data sources that depend on the serial number. Use this page to test the following functionality:
- Serial number matching
Enter various serial numbers to test whether the correct data source is found and that out-of-range serial number results in a message.
- Option exclusion
Try different model and serial numbers and select various options. Confirm that the correct options are excluded (greyed out).
Metar Page
The Metar page is selected under the More tab. It tests retrieving METARs and setting the outside condition according to the METAR data. The "Next" button retrieves a random METAR.
Procedures Page
The Procedure page tests checklist display. Things to test:
- Select the various procedures and confirm that the checklist appears correct.
- Select procedure steps and ensure that the yellow selection indication moves.
- Press the Next button on the control and make sure that the selector moves.
- Select the Engine Start procedure and press the Play button on the control and make sure that the selector moves automatically.
- Hit the Settings button on the control and make sure that the play rate and delay can be adjusted and speaking the text works.
- Check that the procedure link in Test Procedure 1 links to Test Procedure 2.
Settings page
The Settings page is a subset of the standard setting page.
- Select dark mode and check the results.
- On a large device, select the appropriate "show tabs on bottom" and verify that tabs are functional on the bottom.
Unit Test page
The Unit Test page runs all the internal unit tests. The tests test the following:
The unit tests are run to completion every time the page is open and any test failures are displayed. Select "SHow detailed results" to show the results of both passed and failed tests.
Visual Test page
The Visual Test page tests the MVCS framework and the visual presentation. Things to test and look for:
- Use the Numeric input selector and ensure that the options pop up appropriately. Select different options and test whether the numeric inputs on the page invoke the correct input mechanism.
- Change numIn1 and numIn2 and check that the sum is displayed in numOut1. Check that all three are formatted correctly.
- Select the "Disable" and "Warn" checkboxes for numIn1 and numOut1 and verify that the input is disabled and a red warning color is used.
- Change the fuel units and check that the inputs and outputs are converted to the new units.
- Check that the radio input buttons work and that the selection is displayed on the output panel.
- Select the large option selector and verify that the popup is displayed correctly and scrolls appropriately. Verify disabling with the "Disable" checkbox.
- Verify that a large black circle is displayed in the canvas row and is mirrored in the second column.
- Check that the info symbol is displayed and works when clicked.
- Verify that a right arrow entity is displayed before "W&B".
- Set numIn1 to 2 and then 12. Verify that the "When" row changes accordingly.
- Check that numOut2 displays the '-' for default output.
- Check that numIn1 is displayed as text (value-only).
- Check that a POH error is displayed and there's a message at the bottom of the row.
- Click "Test popup 1" and "Test popup 2" to check that the underlying pages are correctly displayed when each popup is dismissed.
- Hit the Notice "Test" button and verify that the notice is displayed correctly.
- Hit the "dialog.confirm" "Test" button and verify that the confirmation is displayed correctly. Hit Cancel and verify that you receive a "Cancel" notice. Hit the confirm "Test" button then "OK" and verify that you receive a "OK notice.
- Hit the "multiple notice" "Test" button and verify that another notice is displayed after the first is dismissed.