This repository was archived by the owner on Nov 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Tests
Ryan Gurnick edited this page Aug 3, 2016
·
7 revisions
(If you delete a test, the results will still stay alive on the server. There is no way to delete test results on the interface)
When you want to add a test to the behat system there are 6 steps.
- First launch the browser and go to the domain that the behat gui is on.
- Then click on the
Homebutton on the top left. - Then click on the
+ Createbutton in the top right hand side. - Then enter a name in the
Nameinput. - Then click on the
Browsebutton to upload a feature template. When you upload a file please make sure that it has the correct variables, otherwise you will get errors. - Thats it.
To execute tests there are three ways to do this.
- Execute individual tests
- Execute by category
- Execute on a schedule
- First launch the browser and go to the domain that the behat gui is on.
- Then click on the
Homebutton on the top left. - Then find the test you want to run in the table.
- Then click on the
Executebutton for that test. - There will be a dropdown that shows all of the variable sets that you have in the system.
- Then click on one of the variable sets you have created, or click on the
Defaultbutton - Thats it.
- First launch the browser and go to the domain that the behat gui is on.
- Then click on the
Homebutton on the top left. - Then click on the
Run by Categorybutton at the top of the page. It will toggle a form. - Then on the left side you can select one or more categories you want to execute.
- On the right side you need to select a variable set that you want to run.
- Click on the
Executebutton on the right side. - All of your tests for those categories will be queued.
- Thats it.
- First launch the browser and go to the domain that the behat gui is on.
- Then click on the
Schedulerbutton on the top right. - Then click on the
+ Createbutton on the top right. - Then for the
Commandinput fill inbehat:execute - Then for the
Parametersinput fill in the test_id and the set_id like so1 0or2 1 - Then for frequency use the Laravel Task Scheduling Options and go down to schedule frequency options and use any of the methods that do not require parameters.
- If you would like to disable the scheduler then check the
disabledcheckbox. - Click
Createand the test will run on a recurring schedule.
On the /tests page there is some information displayed that will be useful to all users. This area will talk about all of the abilities on that page.
- The name column shows the name of the tests. Thats about it for that column.
- The file column shows a button that says
Show/Hide Test Sourcewhich will toggle the source of the test. This allows you to see the actual code and determine if it is useful.
- The last status column shows the last result for each of the tests. It will show whether the test succeeded or failed and how long ago the status was updated.
This area is probably the most complex part of the whole page. It has many buttons that I will explain what each one does below.
- Execute - This button will show a drop down of all of the variable sets in the system. If you click on one of them it will run that test with the variable set you selected.
- Add Category - This button will redirect you to a page where you can add categories to the test you selected.
- View - The view button will show you the page that has the source code for the test, as well as 5 of the most current results for that test. It will also show the analysis, JIRA ticket, and timestamps for each of the results.
- Compiled - This button will show a drop down of all of the variable sets in the system. If you click on one of them it will download the test with the variables from that variable set.
- Edit - This button will allow you to edit the contents of a test in browser. We do not recommend doing this, it is better to use a code editor like atom.
- Delete - This button will permanently delete any test in the system. Please be careful using this.