Hi Rajeev,
Which documents are you referring to?
Do you want to run the tests online or offline? If you can do it
offline, you do not need to code that much in QTP. Semi-pseudo code
below shows an example:
=START OF SNIPPET===================================
Open file with test sequence;
Foreach line in file;
read line;
If len( line ) > 0 Then
If not Eval( line ) Then
Reporter.ReportEvent micFail, "Script failure", "The
script encountered an error when trying to run function: " & line
ExitTest
End if
End If
Loop
Close file;
=END OF SNIPPET===================================
The file would contain an in advanced generated test sequence from a
Model. Of course, all vertices and edges in the model, would be
implemented in QTP as functions.
You could use mbt.tigris.org for that. The specific command for
generating an offline test sequence would be:
java -jar mbt.jar offline -g RANDOM -s EDGE_COVERAGE:100 -f
graphs/UC01.graphml
Where 'graphs/UC01.graphml' is the model represented in graphml
format. See http://mbt.tigris.org for more details.
If you would like to run the tests online, it's gets a bit more
complicated, because you would need the WebServices addon in QTP.
If you would be interested in how that works with QTP, please let me know.
Regards Kristian
--- In model-based-testing@yahoogroups.com, "withrajeev"
<withrajeev@...> wrote:
>
> Hi,
>
> I have 9+ yrs experience in automation testing, have used QTP, open
> source such as Autoit.
>
> I have also developed keyword driven framework in QTP. Now i want to
> implement Model based automation. i did go through few of the
> docuements and did not quite understand how do i start using this for
> QTP.
>
> I basically believe we need to write a lot of code which can read
> design and then come up with state and convert the state to different
> test script.
>
> Any idea/thoughts/experience will greatly help.
> Thanks,
> Rajeev
>