forked from connamara/agent_fix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inspect_all.feature
54 lines (39 loc) · 1.99 KB
/
inspect_all.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@inspect_all
Feature: A simple test request example to demonstrate agent_fix scoping on all message types, including session level
Scenario Outline: Basic TestRequest
Outline demonstrates that both agents can send/receive session messages
Given the agents are running
Then I should receive a message on FIX of type "Logon" with agent "my_acceptor"
Then I should receive a message on FIX of type "Logon" with agent "my_initiator"
When "<sender>" sends a TestRequest with TestReqID "<req>"
And I sleep 5 seconds
Then "<receiver>" should receive a TestRequest with TestReqID "<req>"
And "<sender>" should receive a HeartBeat with TestReqID "<req>"
When I send the following FIX message from agent "<sender>":
"""
8=FIX.4.235=D11=hello21=155=IBM54=140=260=20090101-17:13:06.684
"""
Then I should receive a message on FIX of type "NewOrderSingle" with agent "<receiver>"
Examples:
|sender | receiver | req |
|my_initiator | my_acceptor | hello |
|my_acceptor | my_initiator | world |
@fix50
Scenario Outline: Basic TestRequest
Outline demonstrates that both agents can send/receive session messages
Given the agents are running
Then I should receive a message on FIX of type "Logon" with agent "my_fix50_acceptor"
Then I should receive a message on FIX of type "Logon" with agent "my_fix50_initiator"
When "<sender>" sends a TestRequest with TestReqID "<req>"
And I sleep 5 seconds
Then "<receiver>" should receive a TestRequest with TestReqID "<req>"
And "<sender>" should receive a HeartBeat with TestReqID "<req>"
When I send the following FIX message from agent "<sender>":
"""
8=FIXT.1.135=D11=hello21=155=IBM54=140=260=20090101-17:13:06.684
"""
Then I should receive a message on FIX of type "NewOrderSingle" with agent "<receiver>"
Examples:
|sender | receiver | req |
|my_fix50_initiator | my_fix50_acceptor | hola |
|my_fix50_acceptor | my_fix50_initiator | mundo |