Page tree
Skip to end of metadata
Go to start of metadata

Steps To Add Acceptance Test

  1. Running Fitnesse server. Please follow the instructions on following page to start Fitnesse server
  2. Start web browser http://localhost:7070/OpenCga
  3. Adding Test Suite
    1. Click on Add, select Suite Page


  4. Adding Test Page
    1. Click the Suite to add a Test Page
    2. Click the Add button and select Test Page


  5. Adding Test(s)
    1. Click the Test Page and Click Edit, User will see a page like this
    2. Add Test(s) in Fitnesse tabular format.
      1. Example

        !3 Login User                                                                                       <====> Heading / Test Name
        !|Table: Rest Fixture | ${baseURL} |                                                    <====> Fitnesse Fixture Name e,g; RestFixture
        | setBody | {"password" : "user_P@ssword"}|                                     <====> Set Body in JSON format
        | setHeader|Content-Type:application/json|                                        <====> Set Header
        | POST | /v1/users/test/login | | Content-Type: application/json ||       <====> Call Rest Function POST/GET/PUT etc 

        |VERB (POST/GET/DEL/etc)| Parameters | Return Code | Return Header | Response |

        For detail explanation of each individual fields, please read documentation from RestFixture


  6. Running Suite/Test
    Click on Suite/Test Page to run complete Suite or individual Test page.
                

Table of Contents:


  • No labels