Download Analysing Interactive Voice Services
Transcript
M USTARD Meaning % text comment decides(behaviour,...) provides behaviours as non-deterministic (system-decided) alternatives depends(condition,test,...) if first condition holds then do first test, else check later condition/test pairs exits(behaviour,...) executes behaviours in sequence and then exits fails(behaviour,...) executes behaviours in sequence and then stops interleaves(behaviour,...) interleaves behaviours in parallel offers(behaviour,...) provides behaviours as deterministic (userdecided) alternatives present(feature) checks if feature is present recv(signal,parameters) environment receives signal with given parameters refuses(behaviour,...) executes behaviours in sequence, but the last behaviour must not happen send(signal,parameters) environment sends signal with given parameters sequences(behaviour,...) executes behaviours in sequence succeeds(behaviour,...) executes behaviours in sequence, then causes the internal success event and stops test(name,behaviour) define test with given name and behaviour wait(signal,parameters) absorbs events, continuing on occurrence of given signal with given parameters Fig. 10. Summary of M USTARD Notation In order to ground a partial test like this, it is still necessary to provide some key inputs such as the choice of charity and amount. Suppose the Confirm feature in figure 8 is to be tested for the user agreeing to proceed. The following waits for the confirmation prompt, and then issues a user agreement. test(Confirm1, succeeds( wait(Audio,Do you wish to proceed?), send(Voice,Yes))) 21 % confirmation test % successful sequence % get confirm prompt % agree