Skip to content

Commit fd2661d

Browse files
kendarorgKendar
andauthored
129 should add a start automatic test (#130)
* * Removed references to NULL tests * Support for "Auto tests" with initialization phase * * Tested for "Auto tests" with initialization phase * Updated Janus-Driver to release * Updated docs Co-authored-by: Kendar <unknown@kendar.org>
1 parent 38dbb5d commit fd2661d

48 files changed

Lines changed: 972 additions & 937 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/gen_sources/automatictestcalendar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<img src="../images/stimulator_wwwsamplegateway.gif" width="500"/>
1414

15-
* Run the test
15+
* Run the test with "Play Stimulator"
1616
* Check the results on the results tab!
1717

1818

@@ -33,7 +33,7 @@
3333

3434
<img src="../images/verify_structure_script.gif" height="300"/>
3535

36-
* Replay And be happy
36+
* click "Play Stimulator" And be happy
3737
* Check the [results](http://www.local.test/plugins/recording/results.html)!
3838
* Download and save the script as NullAutoTestGateway.json
3939

@@ -53,7 +53,7 @@
5353
[{"id":1,"name":"John","role":"Doe","unexpected":"field"}]
5454
</pre>
5555

56-
* Run the test again
56+
* Run the test again with "Play Stimulator"
5757
* Check the FAILED results! Notice that the field "unexpected" is the one we added!
5858

5959
<img src="../images/unexpected_field.gif" width="500"/>

docs/gen_sources/basic_replaying.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ is kept to avoid double calls
1111

1212
#### The types
1313

14-
Essentially the replayer has 3 ways to replay
14+
Essentially the replayer has 2 ways to replay
1515

16-
* Replay: You should invoke the "front" service and HAM will respond to the invocations. You are responsible for running the "initiator calls"
17-
* Null Infrastructure: Define a Stimulator, the APIs that will guide the test, and (if present) the Stimulated, the APIs that will be invoked by the system under test. Everything is automatically run
18-
* PACT: Like null, but it invokes the real service and allow the verification of its data and schemas. Everything is automatically run
16+
* Play: You should invoke the "front" service and HAM will respond to the invocations. You are responsible for running the "initiator calls"
17+
* Play stimulator: Start to run the stimulator calls (and to respond if not already pressed the play)
1918

2019
At the end of a test the result is shown in a specific page/API
2120

docs/gen_sources/manualtestcalendar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Stop the "be" application
1717
* Stop the "gateway" application
1818
* Download and save the script as NullGateway.json
19-
* Play the Script
19+
* Play the Script with "Play"
2020
* Do the navigation as you did while recording
2121
* Everything will work as if be is up!
2222

@@ -34,6 +34,6 @@
3434

3535
* Stop the "be" application
3636
* Download and save the script as NullBe.json
37-
* Play the Script
37+
* Play the Script clicking on "Play"
3838
* Do the navigation as you did while recording
3939
* Everything will work as if gateway is up!

docs/gen_sources/recordcalendardb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ set the index 1 (the first to set JDBC prepared statement parameters)
8686
* Path: /int/
8787
* "Download" the recording as "DbOnly.json"
8888
* Now stop the H2 database and the BE application
89-
* Start replaying the recording
89+
* Start replaying the recording with "Play"
9090
* Restart the BE with the be.bat/sh
9191
* When the initialisation is complete go again of www.sample.test and redo all the steps (John Doe etc)
9292
* Everything will work :D

docs/generated/automatictestcalendar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ You can now check ham application going on http://www.local.test
111111

112112
<img src="../images/stimulator_wwwsamplegateway.gif" width="500"/>
113113

114-
* Run the test
114+
* Run the test with "Play Stimulator"
115115
* Check the results on the results tab!
116116

117117

@@ -132,7 +132,7 @@ You can now check ham application going on http://www.local.test
132132

133133
<img src="../images/verify_structure_script.gif" height="300"/>
134134

135-
* Replay And be happy
135+
* click "Play Stimulator" And be happy
136136
* Check the [results](http://www.local.test/plugins/recording/results.html)!
137137
* Download and save the script as NullAutoTestGateway.json
138138

@@ -152,7 +152,7 @@ You can now check ham application going on http://www.local.test
152152
[{"id":1,"name":"John","role":"Doe","unexpected":"field"}]
153153
</pre>
154154

155-
* Run the test again
155+
* Run the test again with "Play Stimulator"
156156
* Check the FAILED results! Notice that the field "unexpected" is the one we added!
157157

158158
<img src="../images/unexpected_field.gif" width="500"/>

docs/generated/dbtest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ set the index 1 (the first to set JDBC prepared statement parameters)
155155
* Path: /int/
156156
* "Download" the recording as "DbOnly.json"
157157
* Now stop the H2 database and the BE application
158-
* Start replaying the recording
158+
* Start replaying the recording with "Play"
159159
* Restart the BE with the be.bat/sh
160160
* When the initialisation is complete go again of www.sample.test and redo all the steps (John Doe etc)
161161
* Everything will work :D

docs/generated/manualtestcalendar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ You can now check ham application going on http://www.local.test
114114
* Stop the "be" application
115115
* Stop the "gateway" application
116116
* Download and save the script as NullGateway.json
117-
* Play the Script
117+
* Play the Script with "Play"
118118
* Do the navigation as you did while recording
119119
* Everything will work as if be is up!
120120

@@ -132,6 +132,6 @@ You can now check ham application going on http://www.local.test
132132

133133
* Stop the "be" application
134134
* Download and save the script as NullBe.json
135-
* Play the Script
135+
* Play the Script clicking on "Play"
136136
* Do the navigation as you did while recording
137137
* Everything will work as if gateway is up!

docs/generated/testcalendar_internals.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,10 @@ is kept to avoid double calls
9797

9898
#### The types
9999

100-
Essentially the replayer has 3 ways to replay
100+
Essentially the replayer has 2 ways to replay
101101

102-
* Replay: You should invoke the "front" service and HAM will respond to the invocations. You are responsible for running the "initiator calls"
103-
* Null Infrastructure: Define a Stimulator, the APIs that will guide the test, and (if present) the Stimulated, the APIs that will be invoked by the system under test. Everything is automatically run
104-
* PACT: Like null, but it invokes the real service and allow the verification of its data and schemas. Everything is automatically run
102+
* Play: You should invoke the "front" service and HAM will respond to the invocations. You are responsible for running the "initiator calls"
103+
* Play stimulator: Start to run the stimulator calls (and to respond if not already pressed the play)
105104

106105
At the end of a test the result is shown in a specific page/API
107106

docs/plugins/replayer/null.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ reproduced. And you can even verify the data.
1010

1111
An [example](../../generated/automatictestcalendar.md)
1212

13-
Simply push "Play" and you will act as "stimulator" for the application you are verifying
13+
Simply push "Play stimulator" and you will act as "stimulator" for the application you are verifying
1414

1515
* If you have recorded all the calls made by a UI you could redo all the actions you recorded
1616
* If you are working with a db and http calls everything recorded will be returned

docs/plugins/replayer/pact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if(expectedresponse.getStatusCode()!=response.getStatusCode()){
1313
throw "Expected status code "+expectedresponse.getStatusCode()+" but received "+response.getStatusCode();
1414
}
15-
* Run the test!
15+
* Run the test! with "Play Stimulator"
1616

1717
If (of course) during this kind of test the data changes wildly and changes are propagated
1818
through requests you can check the [JS Interception](replayer.md) section to use variables

0 commit comments

Comments
 (0)