Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.
Lilly An edited this page Aug 4, 2016 · 46 revisions

Welcome to the Testing-Automation wiki!

Kindly look to the box on the right for feature documentation.

Learning how to use Behat-GUI?

Feature Documentation

Python Scripts

GUI

Ansible

Installation

  • Get all of the roles linked above
  • Setup the hosts for ansible
  • Make the main.yml
- name: setup behat-env
  sudo: true
  hosts: webservers

  vars:
    mysql_port: 3306                 # The port for mysql server to listen
    mysql_bind_address: "0.0.0.0"    # The bind address for mysql server
    mysql_root_db_pass: 123       # The root DB password

    # A list that has all the databases to be
    # created and their replication status:
    mysql_db:
    - name: behat
      replicate: yes

    # A list of the mysql users to be created
    # and their password and privileges:
    mysql_users:
    - name: benz
      pass: foobar
      priv: "*.*:ALL"

    # If the database is replicated the users
    # to be used for replication:
    mysql_repl_user:
    - name: behat
      pass: 123

    # The role of this server in replication:
    mysql_repl_role: master

    # A unique id for the mysql server (used in replication):
    mysql_db_id: 7

    firewall_allowed_tcp_ports:
    - "22"
    - "80"

  roles:
     - { role: ansible_uclalib_role_apache }
     - { role: bennojoy.mysql }
     - { role: ansible_uclalib_role_php }
     - { role: ansible_uclalib_role_chrome }
     - { role: geerlingguy.java}
     - { role: ansible_uclalib_role_headless_selenium }
     - { role: arknoll.selenium }
     - { role: tersmitten.composer }
     - { role: davidkarban.git }
     - { role: geerlingguy.firewall }
     - { role: ansible_uclalib_role_behat }
  • Run the ansible file against your server
    • ansible-playbook -i hosts main.yml -u ryan -k -K
  • After ansible is done restart the machine using
    • shutdown -r now
  • Go to the domain or ip in the browser, you will see the tests page
  • Installation complete.

Todos

(Jira tickets for these todos are here:

  • Test / Tune installation and updating of the Testing Framework

  • Add features to the Testing Framework GUI

  • Automatically insert test results into Confluence and/or Jira

  • Commands

    • behat:analyze
      • Get all of the plain text and regex to a database.
    • behat:pull
      • Get a folder of feature files from a github repo and process them into the system
  • Web

    • Add a search box to search by name for the tests (/) page.
    • Setup jGrowl to use ajax notifications for when the test is finished.
    • Add create categories to the system.
    • In the navbar group the variable and sets into Templating
    • Move the Run by Category to be connected to + Create
    • Change the color of the Execute button for run by category
    • Fix the look of the search bar on the /tests page.
    • Fix the scheduler page so that it is easier to use.
    • Add table-bordered to Tests table.
    • Add glyphicon-tasks to run by category
    • Change execute to run test
    • Change + Create on tests page to + Create Test
    • On Reports/Analysis of Message, put in color code key on right-hand side (red, green, yellow, blue)
    • Clicking the Behat button should take us to the Home page
  • Notifications

  • Bugs

    • Make it so you cannot assign the same category to the same test multiple time.
    • Fix category delete for tests.
  • Github

    • Add GUI for github.
      • (the source url at github needs to be configurable somehow, ie a config file, documented sql command or gui) (@darrowco... can you explain please.)

Clone this wiki locally