New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
philadelphia-client: Add 'expect' command #92
Comments
@jvirtanen Will take care about that next days |
Great, @khsergvl! I think it makes sense to discuss here first the semantics of the To get started, if you are not yet familiar with the terminal client, a good exercise is to the Parity FIX Gateway test script. You can do it as follows (assuming that Parity is in a
In principle, it would be great if this test script would some day use |
@jvirtanen Thank you for good example and assistance. I think that it's also sense to add index as it's in messages. In this way will be easier to handle test cases like messages - 2. What do you think about that? |
@jvirtanen So, what do you think about my idea? |
@khsergvl I think the
|
@jvirtanen As i'm now working to implement this feature, what do you think if |
I think for starters the mechanism suggested above, Regarding your question, yes, I think it would make sense to print the matching message upon reception. 👍 |
Hi @jvirtanen. I've done scratch for expect command, so could you have a look? Keep attention on failure during CI checks - is it all ok after your dependencies update? |
Yeah, I noticed that yesterday. It looks like Travis is having some issues with their Java 8 support. 🤷♂ |
I switched from Oracle JDK 8 to OpenJDK 8 on Travis, and the Java 8 build works again. |
@jvirtanen yeah, working fine now, thanks. |
Philadelphia Terminal Client can run scripts nowadays. For testing FIX acceptors, an
expect
command would be useful. The syntax of the command could be similar to the syntax of thesend
command. For example:On the other hand, it should also be possible to skip the expectation for a specific field value, such as the OrderID(37) and ExecID(17) values here:
Like
send
,expect
should expect the fields in the specified order.An open question is how
expect
commands should match with incoming messages. Should theexpect
commands form a FIFO queue against the first of which an incoming message is matched? What should happen if an expectation fails?The text was updated successfully, but these errors were encountered: