robot framework execution order

449 views
Skip to first unread message

Neel Desai

unread,
Jan 26, 2017, 12:53:58 PM1/26/17
to robotframework-users
Hello,

I need biggest help from your side guys.

I do have two test suite files for test cases.

1. 01_Initial.txt
2. 02_Main.txt


Initially I have just one test case file 01_Initial.txt. On first line of test case in 01_Initial.txt I do have keyword that creates 02_Main.txt run time. Now whenever I am running my automation plan for robot framework. It is just start from 01_Initial.txt and creates 02_Main.txt and terminate the procedure and give the 'PASS' result for creating 02_Main.txt file. It is not executing all the test cases from 02_Main.txt

In robot framework through mvn plugin, Can I provide execution order of test case suites in pom.xml file? Is there any way to do so?

Please let me know. I am trying this from last two days.

Thanks,
Neel Desai

Pekka Klärck

unread,
Jan 27, 2017, 4:11:39 PM1/27/17
to neelde...@gmail.com, robotframework-users
Hello,

Robot parses the files on the file system before it starts execution.
Possible files your add or remove after that don't affect the
execution. There are, at least, two approaches you can try:

1. First run the suite that generates the other suite. After the first
execution finishes, run the generated suite.

2. Use the listener interface version 3 and generate test cases/suites
dynamically. This way you don't even need to create them on the file
system. The listener interface is documented in the User Guide. If you
got specific questions about using it, don't hesitate to ask!

Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to robotframework-u...@googlegroups.com.
> To post to this group, send email to robotframe...@googlegroups.com.
> Visit this group at https://groups.google.com/group/robotframework-users.
> For more options, visit https://groups.google.com/d/optout.



--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Reply all
Reply to author
Forward
0 new messages