Tests

uri/../images/ck2-tests.png

The tests page helps you run tests to confirm the portal is operating as designed. Each area of functionality (module) has a series of numbered tests. Some have dependencies on previous tests: these are noted in the status column.

You can view the tests on both the _live_ and _test_ sites, but they will only run on the _test_ site.

When you run each test, it will display a list of the actions it's taken, and a list of the next steps you need to take.

*1.* _Clear filters_ removes any filters you may have applied and displays all the log records; _Export data_ generates a spreadsheet of log entries; _Hide options_ or _Show options_ toggles the visibility of the control panel at the top of the page.

*2.* Filter to show only the tests you're currently running.

*3.* Click a row to run the test. This displays the test dialog below when it's complete.

 

Why have tests?

All code is tested before it's deployed, but there are some complex processes within the grants portal that are difficult to set up for testing. For example, testing rebuttals requires:

* Submitted applications.

* Access to referee accounts.

* Submitted reviews.

* Access to administrator accounts.

* Access to applicant accounts.

It can take over an hour to set up the data needed to test the process from end to end, and perhaps half an hour to do the actual testing.

By incorporating testing for key processes into the framework itself, the time required for testing can be reduced to about five minutes in total, and the tests always have complete coverage - nothing is skipped.

An administrator doesn't usually run tests. But there can be times when it is useful to go to the test site and run, for example, the grant report tests so you can re-familiarise yourself with how the process works, and assure yourself that the emails that will be sent out are correctly formed.

The good thing about these tests is *you cannot do any harm*. The data can safely be returned to its original state by using the _Global->Delete test data_ option.

But running tests is not a requirement for being a grants portal administrator: it's just something you may find useful at some point.

 

Test dialog

uri/../images/ck2-testdialog.png

It's recommended that you have the _test_ site open in two tabs; one to run the tests, the other to carry out the _Next steps_ detailed in the test results. The test dialog shows you two things:

*1.* What the grants portal itself has done.

*2.* What you should do.

If _Next steps_ require you to move to an applicant, referee or any other type of account, refresh the other page you have open and you'll find that account is already set up for you to switch to. When you've completed the required steps, switch back to your administrator account before continuing.

When you've finished testing, you have the option of resetting the database to the status it had before you began testing, or retaining the created test data for future reference. Both these options are listed under the _Global_ module.

If you can't find the information you need, please use the "Get in touch" form on this page to send an inquiry to Cure Kids.


Help wiki | Adding a page | Editing a page | Removing a page | Creating screenshots | Welcome | Dashboard | Email moderation | Applications | List all applications | Funding round filter | Grant type filter | Status filter | Page reload | Institutions filter | Referees filter | Match filter | List all grants | List all referee reviews | Guides for application types | General Information | Rheumatic Research EoI | Roy Austin Repatriation Fellowship | Innovation Seed Fund | Project Grant | Perinatal Collaboration | Managing an application | List all grant reports | Managing referee reviews | Scores | Users | List all users | Create new user | Roles filter | Status filter | Match filter | Page reload | User dialogs | Verify institutions | Email history | Send RFPs | Settings | Configuration | Content | Email templates | Funding rounds | Help editor | Log entries | Reference data | Tests | Strings | Funding streams | Personal options | Profile | Log out | Events | Messages