-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmemory.feature
47 lines (41 loc) · 1.01 KB
/
memory.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
@with_data_dictionary @ignore_length_and_checksum
Feature: Memory
Background:
Given the following fix message:
"""
8=FIX.4.235=849=ITG56=SILO44=1250.25
"""
When I get the fix message
Scenario: Entire FIX message
When I keep the FIX message as "FIX1"
Then the FIX message should be %{FIX1}
And the FIX message should be:
"""
%{FIX1}
"""
Scenario: String header field
When I keep the FIX message at tag "MsgType" as "MSGTYPE"
Then the FIX message at "MsgType" should be %{MSGTYPE}
And the FIX message should be:
"""
{
"MsgType": %{MSGTYPE},
"SenderCompID": "ITG",
"TargetCompID": "SILO",
"BeginString": "FIX.4.2",
"Price": 1250.25
}
"""
Scenario: Numerical body field
When I keep the FIX message at tag "Price" as "PRICE"
Then the FIX message at "Price" should be %{PRICE}
And the FIX message should be:
"""
{
"MsgType": "ExecutionReport",
"SenderCompID": "ITG",
"TargetCompID": "SILO",
"BeginString": "FIX.4.2",
"Price": %{PRICE}
}
"""