karate unified framework api testing
There are APIs to process orders and my job is to make sure it’s functioning correctly with black box testing. The API does these tasks:
An order has these statuses in sequence: ASSIGNING
=> ONGOING
=> COMPLETED
or CANCELLED
ASSIGNING
: looking for a driver to be assignedONGOING
: a driver has been assigned and working on the orderCOMPLETED
: the driver has completed the orderCANCELLED
: the order was cancelledPOST | /v1/orders |
---|---|
GET | /v1/orders/{orderID} |
PUT | /v1/orders/{orderID}/take |
PUT | /v1/orders/{orderID}/cancel |
PUT | /v1/orders/{orderID}/complete |
Please clone the project or download and follow below information to move further on execution.
STEP 1: scenarios in `e2e_orderflow.feature` - Scenario One with complete order and Scenario two with cancel order
STEP 2: there are two scenario's in `e2e_orderflow.feature` and you can choose to run one or both.
STEP 3: if you want execute scenarios then make sure there is `#` before the tags `@scenarioWithCompleteOrder` and `@ignore` for first scenario.
STEP 4: if you want execute both then make sure you repeat `STEP 3`, note in scenario you will see tags `scenarioWithCancelOrder` and `@ignore` .
STEP 5: you can use `mvn clean package compiler:testCompile surefire:test` .
An option <useSystemClassLoader>false</useSystemClassLoader>
under surefire plugin in POM can be removed. But the surefire loading issue “maven-surefire-forked-vm-terminated-issue-in-windows” with openJDK8 is not fixed, yet.
Please navigate to target
folder in project location and open cucumber-html-reports
folder and open overview-features
html file.
javascript function
with in scenario steps I might repeat or unnecessarily duplicated in both scenarios, this can be moved to reusable.js
or something like that.simpledateformat
and other classes and that can called in scenario to test or validate the date and time.e2e_orderflow.feature
is in its package.Due to too much time demanding and workload pressure from my regular day job, I had to skip few validations.
Appreciated if someone contacts me to know much about my experience and skill set.