Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.
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)

How to Add

When you want to add a test to the behat system there are 6 steps.

  1. First launch the browser and go to the domain that the behat gui is on.
  2. Then click on the Home button on the top left.
  3. Then click on the + Create button in the top right hand side.
  4. Then enter a name in the Name input.
  5. Then click on the Browse button to upload a feature template. When you upload a file please make sure that it has the correct variables, otherwise you will get errors.
  6. Thats it.

Execute Tests

To execute tests there are three ways to do this.

  1. Execute individual tests
  2. Execute by category
  3. Execute on a schedule

Execute Individual Tests

  1. First launch the browser and go to the domain that the behat gui is on.
  2. Then click on the Home button on the top left.
  3. Then find the test you want to run in the table.
  4. Then click on the Execute button for that test.
  5. There will be a dropdown that shows all of the variable sets that you have in the system.
  6. Then click on one of the variable sets you have created, or click on the Default button
  7. Thats it.

Execute Categorical Tests

  1. First launch the browser and go to the domain that the behat gui is on.
  2. Then click on the Home button on the top left.
  3. Then click on the Run by Category button at the top of the page. It will toggle a form.
  4. Then on the left side you can select one or more categories you want to execute.
  5. On the right side you need to select a variable set that you want to run.
  6. Click on the Execute button on the right side.
  7. All of your tests for those categories will be queued.
  8. Thats it.

Execute Scheduled Tests

  1. First launch the browser and go to the domain that the behat gui is on.
  2. Then click on the Scheduler button on the top right.
  3. Then click on the + Create button on the top right.
  4. Then for the Command input fill in behat:execute
  5. Then for the Parameters input fill in the test_id and the set_id like so 1 0 or 2 1
  6. 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.
  7. If you would like to disable the scheduler then check the disabled checkbox.
  8. Click Create and the test will run on a recurring schedule.

Test Information

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.

Name Column

  • The name column shows the name of the tests. Thats about it for that column.

File Column

  • The file column shows a button that says Show/Hide Test Source which will toggle the source of the test. This allows you to see the actual code and determine if it is useful.

Last Status Column

  • 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.

Options Column

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.

Clone this wiki locally