Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions tools/api-automation/extend-config2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<extentreports>
<configuration>
<!-- report theme --> <!-- standard, dark -->
<theme>standard</theme>

<!-- document encoding --> <!-- defaults to UTF-8 -->
<encoding>UTF-8</encoding>

<!-- protocol for script and stylesheets --> <!-- defaults to https -->
<protocol>https</protocol>

<!-- title of the document -->
<documentTitle>ToolsQA - Cucumber Framework</documentTitle>

<!-- report name - displayed at top-nav -->
<reportName>ToolsQA - Cucumber Report</reportName>

<!-- global date format override --> <!-- defaults to yyyy-MM-dd -->
<dateFormat>yyyy-MM-dd</dateFormat>

<!-- global time format override --> <!-- defaults to HH:mm:ss -->
<timeFormat>HH:mm:ss</timeFormat>

<!-- custom javascript -->
<scripts>
<![CDATA[
$(document).ready(function() {

});
]]>
</scripts>

<!-- custom styles -->
<styles>
<![CDATA[

]]>
</styles>
</configuration>
</extentreports>
49 changes: 49 additions & 0 deletions tools/api-automation/extent-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<extentreports>
<configuration>
<!-- report theme -->
<!-- standard, dark -->
<theme>standard</theme>

<!-- document encoding -->
<!-- defaults to UTF-8 -->
<encoding>UTF-8</encoding>

<!-- protocol for script and stylesheets -->
<!-- defaults to https -->
<protocol>https</protocol>

<!-- title of the document -->
<documentTitle>ExtentReports 2.0</documentTitle>

<!-- report name - displayed at top-nav -->
<reportName></reportName>

<!-- report headline - displayed at top-nav, after reportHeadline -->
<reportHeadline>Automation Report</reportHeadline>

<!-- global date format override -->
<!-- defaults to yyyy-MM-dd -->
<dateFormat>yyyy-MM-dd</dateFormat>

<!-- global time format override -->
<!-- defaults to HH:mm:ss -->
<timeFormat>HH:mm:ss</timeFormat>

<!-- custom javascript -->
<scripts>
<![CDATA[
$(document).ready(function() {

});
]]>
</scripts>

<!-- custom styles -->
<styles>
<![CDATA[

]]>
</styles>
</configuration>
</extentreports>
19 changes: 19 additions & 0 deletions tools/api-automation/files/Test_formA_2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
today,start,imei,end,group_1/resp_name,group_1/resp_age,group_1/resp_sex,group_1/hhh_female,group_1/child_num,group_1/photo,group_2/food,group_2/transport,group_2/total,meta/instanceID
2018-12-14,2018-12-14T10:35:17.502000+03:00,enketo.ona.io:0CgMXF5tuvFTfOkw,2018-12-14T10:35:49.154000+03:00,Druid,30,2,1,2,http://classic.ona.io/api/v1/files/10488009?filename=qastuff/attachments/368110_Test_formA/Tulips-10_35_41.jpg,4000,5000,9000,n/a
2018-12-14,2018-12-14T10:35:49.219000+03:00,enketo.ona.io:0CgMXF5tuvFTfOkw,2018-12-14T10:36:13.882000+03:00,Gregory,34,1,n/a,1,http://classic.ona.io/api/v1/files/10488011?filename=qastuff/attachments/368110_Test_formA/pic2-10_36_5.jpg,5000,6000,11000,n/a
2019-02-13,2019-02-13T15:19:00.754000+03:00,enketo.ona.io:prE2UMRUzWFqhuPt,2019-02-13T15:19:33.744000+03:00,Janice,30,2,1,25,http://classic.ona.io/api/v1/files/10925902?filename=qastuff/attachments/368110_Test_formA/Desert-15_19_24.jpg,3000,4000,7000,n/a
2019-02-13,2019-02-13T15:19:33.774000+03:00,enketo.ona.io:prE2UMRUzWFqhuPt,2019-02-13T15:20:19.963000+03:00,Kalunde,30,2,1,4,http://classic.ona.io/api/v1/files/10925917?filename=qastuff/attachments/368110_Test_formA/Hydrangeas-15_20_11.jpg,3000,5000,8000,n/a
2021-05-27,2021-05-27T11:26:44.098000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:27:13.505000+03:00,Hannah,28,2,1,3,http://classic.ona.io/api/v1/files/20450401?filename=qastuff/attachments/368110_Test_formA/Screenshot_2021-05-24_at_17.56.33-11_27_6.png,3000,4000,7000,n/a
2021-05-27,2021-05-27T11:27:13.631000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:28:10.506000+03:00,leila,27,2,1,1,n/a,4000,3000,7000,n/a
2021-05-27,2021-05-27T11:28:10.563000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:28:31.761000+03:00,Jane,29,2,1,2,n/a,5000,6000,11000,n/a
2021-05-27,2021-05-27T11:28:31.831000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:28:52.185000+03:00,Jason,37,1,n/a,3,n/a,4000,1000,5000,n/a
2018-12-14,2018-12-14T10:29:30.373000+03:00,enketo.ona.io:0CgMXF5tuvFTfOkw,2018-12-14T10:30:42.480000+03:00,Kayla,20,2,n/a,3,http://classic.ona.io/api/v1/files/10487989?filename=qastuff/attachments/368110_Test_formA/Koala-10_30_34.jpg,3000,2000,5000,n/a
2018-12-14,2018-12-14T10:30:42.546000+03:00,enketo.ona.io:0CgMXF5tuvFTfOkw,2018-12-14T10:31:00.860000+03:00,Brian,4,1,n/a,4,http://classic.ona.io/api/v1/files/10487990?filename=qastuff/attachments/368110_Test_formA/pic3-10_30_53.JPG,5000,4000,9000,n/a
2018-12-14,2018-12-14T10:35:17.502000+03:00,enketo.ona.io:0CgMXF5tuvFTfOkw,2018-12-14T10:35:49.154000+03:00,Druid,30,2,1,2,http://classic.ona.io/api/v1/files/10488009?filename=qastuff/attachments/368110_Test_formA/Tulips-10_35_41.jpg,4000,5000,9000,n/a
2018-12-14,2018-12-14T10:35:49.219000+03:00,enketo.ona.io:0CgMXF5tuvFTfOkw,2018-12-14T10:36:13.882000+03:00,Gregory,34,1,n/a,1,http://classic.ona.io/api/v1/files/10488011?filename=qastuff/attachments/368110_Test_formA/pic2-10_36_5.jpg,5000,6000,11000,n/a
2019-02-13,2019-02-13T15:19:00.754000+03:00,enketo.ona.io:prE2UMRUzWFqhuPt,2019-02-13T15:19:33.744000+03:00,Janice,30,2,1,25,http://classic.ona.io/api/v1/files/10925902?filename=qastuff/attachments/368110_Test_formA/Desert-15_19_24.jpg,3000,4000,7000,n/a
2019-02-13,2019-02-13T15:19:33.774000+03:00,enketo.ona.io:prE2UMRUzWFqhuPt,2019-02-13T15:20:19.963000+03:00,Kalunde,30,2,1,4,http://classic.ona.io/api/v1/files/10925917?filename=qastuff/attachments/368110_Test_formA/Hydrangeas-15_20_11.jpg,3000,5000,8000,n/a
2021-05-27,2021-05-27T11:26:44.098000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:27:13.505000+03:00,Hannah,28,2,1,3,http://classic.ona.io/api/v1/files/20450401?filename=qastuff/attachments/368110_Test_formA/Screenshot_2021-05-24_at_17.56.33-11_27_6.png,3000,4000,7000,n/a
2021-05-27,2021-05-27T11:27:13.631000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:28:10.506000+03:00,leila,27,2,1,1,n/a,4000,3000,7000,n/a
2021-05-27,2021-05-27T11:28:10.563000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:28:31.761000+03:00,Jane,29,2,1,2,n/a,5000,6000,11000,n/a
2021-05-27,2021-05-27T11:28:31.831000+03:00,enketo.ona.io:xQ8HNoTbjmYcQhXo,2021-05-27T11:28:52.185000+03:00,Jason,37,1,n/a,3,n/a,4000,1000,5000,n/a
167 changes: 167 additions & 0 deletions tools/api-automation/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--suppress ALL -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>RestAssuredFramework</groupId>
<artifactId>RestAssuredFramework</artifactId>
<version>1.0-SNAPSHOT</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.14.1</version>
<configuration>
<includes>
<testSourceDirectory>test</testSourceDirectory>
<include>**/RunCukesTest*.java</include>
</includes>
<testFailureIgnore>true</testFailureIgnore>

</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.0</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>ru.qatools.commons</groupId>
<artifactId>properties</artifactId>
<version>2.0.RC6</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180813</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.13-beta1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>1.5.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.8</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.4.0</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>28.2-jre</version>
</dependency>

<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-schema-validator</artifactId>
<version>3.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.1.1</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>3.0.2</version>
</dependency>

<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>4.0.9</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.vimalselvam/cucumber-extentsreport -->
<dependency>
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>3.1.1</version>
</dependency>

<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports-cucumber4-adapter</artifactId>
<version>1.0.7</version>
</dependency>
</dependencies>
</project>
Loading