-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from osandadeshan/1.3.2
1.3.2
- Loading branch information
Showing
179 changed files
with
5,755 additions
and
8,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: IntelliAPI CI with Maven | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Add Gauge's GPG key | ||
run: sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys 023EDB0B | ||
- name: Add Gauge to the repository list | ||
run: echo deb https://dl.bintray.com/gauge/gauge-deb stable main | sudo tee -a /etc/apt/sources.list | ||
- name: Install Gauge | ||
run: sudo apt-get update && sudo apt-get install gauge | ||
- name: Install Gauge-Java plugin | ||
run: gauge install java | ||
- name: Run pre-requisites tests with Maven | ||
run: mvn test-compile gauge:execute -DspecsDir="specs" -Dtags="pre_requisites" -Denv="qa" | ||
- name: Run regression tests with Maven | ||
run: mvn test-compile gauge:execute -DspecsDir="specs" -Dtags="regression" -Denv="qa" -DinParallel=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
echo Executing MaxSoft IntelliAPI Dev BVT API Test Automation Suite............. | ||
|
||
cd .. | ||
|
||
call mvn test-compile gauge:execute -DspecsDir="specs" -Dtags="pre_requisites" -Denv="dev" | ||
call mvn test-compile gauge:execute -DspecsDir="specs" -Dtags="regression" -Denv="dev" | ||
|
||
echo Exit Code = %ERRORLEVEL% | ||
if not "%ERRORLEVEL%" == "0" exit /b |
5 changes: 2 additions & 3 deletions
5
bat_files/test_runner_bats/Dev BVT.bat → ...les/dev_regression_run_with_greporter.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
echo Executable Document Generation............. | ||
|
||
cd .. | ||
gauge docs spectacle specs | ||
|
||
echo Exit Code = %ERRORLEVEL% | ||
if not "%ERRORLEVEL%" == "0" exit /b |
1 change: 0 additions & 1 deletion
1
bat_files/jar_maker_bat/JAR Maker.bat → batch_files/jar_maker.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
@echo off | ||
echo Making MaxSoft IntelliAPI JAR ............. | ||
|
||
cd .. | ||
cd .. | ||
|
||
mvn clean install -DskipTests | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Project Name : MaxSoft-IntelliAPI | ||
Developer : Osanda Deshan | ||
Version : 1.0.0 | ||
Date : 28/04/2019 | ||
Time : 17:56 | ||
Description : This is a concept file | ||
|
||
|
||
# Create a user | ||
|
||
* Given that a user needs to invoke "Create a user" | ||
* And the user saves test data inside excel file into data stores | ||
|DataStore Type|Variable Name |Excel Sheet Name |Key Name | | ||
|Scenario |varName |User_Test_Data |name | | ||
|Scenario |varGender |User_Test_Data |gender | | ||
|Scenario |varStatus |User_Test_Data |status | | ||
* And concat random text and save it in a data store as follows | ||
|Is Data Store Used?|Data Store Type|Data Store Variable Name|Original Text |Save To New Data Store?|New Data Store Type|New Data Store Variable Name| | ||
|no | | |Tester_ |yes |Scenario |varNewName | | ||
* And generate random email and save it in a data store as follows | ||
|Data Store Type|Data Store Variable Name|Domain Name | | ||
|Scenario |varEmail |mailinator.com | | ||
* And the user set the request attributes using data stores as follows | ||
|Attribute Value In JSON Template|Is Data Store Used?|Data Store Type|Data Store Variable Name|Attibute Value To Be Set| | ||
|#email |yes |Scenario |varEmail | | | ||
|#name |yes |Scenario |varNewName | | | ||
|#gender |yes |Scenario |varGender | | | ||
|#status |yes |Scenario |varStatus | | | ||
* And the user set the request authentication configurations as follows | ||
|Configuration |Configuration Value| | ||
|Is authentication required? |Yes | | ||
|Do you need to retrieve the access token from the text file? |Yes | | ||
|Provide the access token if you need to authorize the API manually|N/A | | ||
* When the user invokes the API | ||
* Then the status code for the request is "200" | ||
* And the JSON Path Assertions for the response should be equal to the values inside the data stores | ||
|JSON Path |Is Data Store Used?|Data Store Type|Data Store Variable Name|Expected Value| | ||
|$.code |no | | |201 | | ||
|$.data.name |yes |Scenario |varNewName | | | ||
|$.data.email |yes |Scenario |varEmail | | |
Oops, something went wrong.