Full Functional Tests
To run full functional tests, do the following:
- File => New. Enter "Test", and check that the model comes up.
- Right click on the model, and choose Rename. Rename the model to Test 2, and check the name updates.
- Clone the model and check that the clone comes up.
- Switch to the "Latest versions" option, and check only the clone shows up.
- Switch to "History list", and check that the clone is second in the list.
- Close the cloned model, and check that the clone closes, and the "+" on the tree view disappears.
- Check that all three views show only the original model.
- Open the tutorial model "Coupled Pendulum Model" with File => Open, and check that it shows up in the model selector.
- Switch between the two loaded models and back, and check that the model tree view updates.
- Check that the graphs from the RDF metadata are showing up in the graph key (note: The tutorial model doesn't actually have the graph metadata anymore, because it confused the tutorial, so another model with this data is needed for the test).
- Integrate the model with default settings, and check that the graphs come up and the buttons in the integration view progress through "Cancel Integration" and then on to "Integration Done". Also check the graph looks okay.
- Try to edit the stop time on the model to 1000. Check that the "frozen model" dialog box pops up, and choose Ok to make a clone. Switch between the new and old model to make sure that the simulation metadata has updated the end time to be 1000.
- Change the graph lines to "Link selected model" in the key, and check that the X-axis goes to 100.
- Switch back and forwards between the two runs of the integration model, and check that the graph updates.
- Clone coupled pendulum again, and set the end time to 100000000. Check the graph updates while the simulation is running. Press the "Cancel Integration" button, and make sure that the integration stops.
- Clone the model again, and change the "a" initial conditon to 2. Integrate the model, and then plot a vs time from both runs at the same time, and check it works.
- Check the memory usage, close all models, open the coupled pendulum model again, and check that the memory usage seems to have gone back to a normal level.
- Check that the Help menu items (tutorial, about, manual) all work.
- Check that File=>Exit works properly