File tree 8 files changed +88
-23
lines changed
8 files changed +88
-23
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
## How to Automate Integration Test Suite
2
2
3
3
- [ SoapUI] ( soapui )
4
- - [ Postman] ( postman )
4
+ - [ Postman] ( postman )
5
+ - [ Swagger] ( swagger )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ## How to Automate Integration Test Suite using Swagger
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+
4
+ <modelVersion >4.0.0</modelVersion >
5
+ <groupId >Test</groupId >
6
+ <artifactId >IntegrationTest-Swagger</artifactId >
7
+ <version >1.0.0</version >
8
+ <packaging >pom</packaging >
9
+
10
+ <build >
11
+
12
+ <plugins >
13
+ <!--
14
+ <plugin>
15
+ <groupId>com.github.eirslett</groupId>
16
+ <artifactId>frontend-maven-plugin</artifactId>
17
+ <version>1.4</version>
18
+ <configuration>
19
+ <nodeVersion>v10.13.0</nodeVersion>
20
+ </configuration>
21
+ <executions>
22
+ <execution>
23
+ <id>install node and npm</id>
24
+ <goals>
25
+ <goal>install-node-and-npm</goal>
26
+ </goals>
27
+ </execution>
28
+
29
+ <execution>
30
+ <id>npm install dredd</id>
31
+ <goals>
32
+ <goal>npm</goal>
33
+ </goals>
34
+ <configuration>
35
+ <arguments>install newman</arguments>
36
+ </configuration>
37
+ </execution>
38
+
39
+ </executions>
40
+ </plugin>
41
+ -->
42
+ <plugin >
43
+ <groupId >org.codehaus.mojo</groupId >
44
+ <artifactId >exec-maven-plugin</artifactId >
45
+ <version >1.3.2</version >
46
+ <executions >
47
+ <execution >
48
+ <id >dredd</id >
49
+ <goals >
50
+ <goal >exec</goal >
51
+ </goals >
52
+ <phase >test</phase >
53
+ <configuration >
54
+ <executable >dredd</executable >
55
+ <arguments >
56
+ <argument >swagger.yaml</argument >
57
+ <argument >http://localhost:8080</argument >
58
+ </arguments >
59
+ </configuration >
60
+ </execution >
61
+ </executions >
62
+ </plugin >
63
+
64
+ </plugins >
65
+
66
+ </build >
67
+
68
+ </project >
Original file line number Diff line number Diff line change
1
+ swagger : " 2.0"
2
+ info :
3
+ version : " 1.0.0"
4
+ title : " Hello World"
5
+ host : " localhost:8080"
6
+ basePath : " /"
7
+ schemes :
8
+ - " http"
9
+ paths :
10
+ /helloworld :
11
+ get :
12
+ operationId : " sayHello"
13
+ produces :
14
+ - " application/text"
15
+ responses :
16
+ 200 :
17
+ description : " successful operation"
You can’t perform that action at this time.
0 commit comments