In order to use the TestFramework you need to import tests created in BDD Framework, Unit Testing Framework, an API test or an UI test created in Ghost Inspector (if you use another framework or tool for UI tests, contact us and we'll implement it in TestFramework).
So let's begin!
Creating a Test Suite in TestFramework
The first thing to do to import Unit Tests, is to create a new Test Suite.
Fill in the fields accordingly:
After filling in the data, click “Create Test Suite” button. The test suite should now appear in the TestSuite's list, of the Define page. Next, we'll setup the suite.
Note: if it's a Ghost Inspector suite, the suite is ready to run and you won't need to import the Unit Tests.
Adding Tests to a Test Suite
Step1
Step2
Test Framework natively supports API testing for APIs that expose REST or SOAP methods
Classifying the Execution of a Test
The reason behind the importance of Testing, is to ensure that new features or changes in an application do not break anything and at the end the application behaves as expected. That being said, when a test fails it’s important to understand the reason behind the fail: was it due to a defect or is there a problem with the test itself?
TestFramework automatically classifies all tests as “Passed” if they passed or as “Unclassified”, in case they failed. In case the test is classified as Unclassified, the Tester needs to define manually if it's "Broken" or a "Defect", as the TestFramework can not do it itself. So, what defines what's a Defect or a Broken test?
Defect: a test that failed due to a malfunction of the application. It's important to document as much information about it as possible with details such as data used, results obtained, expected results and attach logs, for example. In case it's not possible for fix what's breaking the test, the corresponding step should be put in Quarantine.
Broken: a test that failed due to a mistake in the test itself. Could've been caused because of wrong logic for example. In this case the Tester should fix it so it does not fail again. In case that's not possible for the moment, the test should be put in Quarantine. That prevents additional classification until the test is fixed.
Test Framework Overview screen
Test results are organized on a daily basis in the Overview screen. This screen provides a way to easily follow test trends. Press the “Overview” menu option and the following screen appears.