Menu

#2 Test scripts should support more than one argument

open
1
2013-04-19
2011-06-05
No

Currently the test scripts are expecting to get only single argument which was ok at ATS4, but if other test scripting option is used, that behaviour is not ok. For example we need following kind of functionality - this is pseudo code. At IRC-protocol test description is:
send message 'Hello world' to channel #unix

We should be able to have tes script which contains:
irc.send_message("Hello world","#Unix")

With current testscript model this is impossible, because resulting xml is:
<Command paramater="'Hello world' to channel #unix" keyword="irc.send_message" />

The resulting xml should rather be:
<Command keyword="irc.send_message">
<Parameter>'Hello world'</Parameter>
<Parameter>#unix</Parameter>
</Command>

This change reuiqres major refactoring for keyword.xml parsing and also change to xsd's. From development point of view this should be done in 2 stages:
1st stage: More than one parameter is accepted. E.g Send message to channel 'Hello world' #Unix
2nd stage: Key word can contain predefined text between the parametes: send message 'Hello world' to channel #unix

Discussion

  • Jarmo Lähdevaara

    A part of this feature was implemented in an unreleased branch 2011-06-14, which can be found from the SVN branches. Changed priority to low, because AppModel can already handle multiple parameters, those just need to be placed between quotes : " ". For example: Keyword "arg1 arg2 arg3". However this is a thing to be considered in future releases.

     
  • Jarmo Lähdevaara

    • priority: 9 --> 1