intro-story Pub   Share

Testing the intro messages...

We can order a produce for a user:

send::  msg order.product  (product="Email", user="John")

expect::  (order contains "Success")

The mail server can create an email inbox when the user names are good:

send::  msg mailServer.create  (what="Email", user="John")

expect::  (payload[="status"] is "Success")

We get a failure for bad user names:

send::  msg mailServer.create  (what="Email", user="John@")

expect::  (payload[="status"] is "Fail")


Was this useful?    

By: Razie | 2019-05-04 .. 2019-05-07 | Tags: story , dsl


Viewed 448 times ( | History | Print ) this page.

You need to log in to post a comment!