Re: Folder structure for robot

3,778 views
Skip to first unread message

Laurent Bristiel

unread,
Jun 12, 2013, 3:58:21 AM6/12/13
to robotframe...@googlegroups.com
Hello,

1. there is no defined folder structure. You can organize your folder/files the way you want. When you launch robot to execute your tests, you will specifiy a folder in which robot will look for test cases (will recursively look in sub-folder as well). See doc section on that.

2. it is possible to use those 3 types of tests in Robot. But you can also stick to the one you prefer. See doc section on that.

3. you can create different type of files when writing your automated tests portfolio with Robot: test suite file, resource file, library, variable file. Only mandatory file is a test suite file that contains a test case. The other files are optional. See doc section on that topic.

Hope this helps,
Laurent

Le mardi 11 juin 2013 08:37:47 UTC+2, trin...@gmail.com a écrit :
Hi I'm new to Robot, and having some questions on this framework, would be really great if anyone of you could clarify my issues :) , 

1. After installing robot framework is there a defined folder structure as to where to store the jar files, test reports, Test cases and other relevant configuration files ?

2. Do we use all three types Key word driven , Data driven and BDD style test when writing tests in Robot ?

3. Are there any pre defined files that are created when building tests in Robot, if so What are the defined files we use when writing tests. Eg  Resources, Keywords file ???

trin...@gmail.com

unread,
Jun 18, 2013, 3:29:14 AM6/18/13
to robotframe...@googlegroups.com
Thanks  alot for the answers..

On Wednesday, 12 June 2013 13:28:21 UTC +5:30 Laurent BRISTIEL wrote:

Hello, 1 there is no defined folder structure. You can organize your folders / files the way you want. When you launch robot to execute your tests, you want to specifiy a folder in Which robot will look for test cases (will recursively look into sub-folder as well). lake section on doc did . 2 it is possibleness to use Those three types of tests in Robot. But you can then stick to the one you prefer. lake doc section on tha t. 3 you can create different type of files When writing your automated testing portfolio with Robot: testsuite file, resource file, library, variable file. Only mandatory file is a test suite contains a test case file did. . The other files are optional section on lake doc did topic . Hope this helps, Laurent Le mardi 11 juin 2013 08:37:47 UTC +2, trin ... @ Gmail.com a écrit:










Hi I'm new to Robot, and having some questions on this framework, would be really great if anyone of you Could clarify my issues :) 

1 After installing robot framework is there a defined folder structure as to where to store the jar files, test reports, test cases and other relevant configuration files?

2 Do we use all three types Key word driven, data driven and BDD style test When writing tests in Robot?

3 Are there any pre defined did files are created in Robot When Building tests, if so What are the defined files we use When writing tests. Eg Resources, keywords file?

Thomas Maier

unread,
Jun 18, 2013, 7:30:21 AM6/18/13
to trin...@gmail.com, robotframework-users
Hello,

Sorry for such a late response.
I keep my all test files/scenarios flat in single directory. I can execute one/few/all at any point only by using tags.
This is very powerful feature that let me execute my tests in any combination I need.
For example
* run tests for bug1 and bug2
* run tests for all bugs
* run smoke tests only
* run full regression
* run only high priority test cases
* run only UI tests
* run only performance
* run regression test cases for feature1 and feature2 only
* and many more

Very handy.

Regards,
Thomas



--
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 http://groups.google.com/group/robotframework-users.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Thomas Jaspers

unread,
Jun 21, 2013, 2:36:59 AM6/21/13
to robotframe...@googlegroups.com
Another late response :).

I think it is important to ensure that the directory structure is used/created in a way that only relative path information is needed.
Otherwise you might run into trouble when working on the same tests in a team.

In this blog post I have given an example of what I consider a good directory structure to use with the Robot Framework:
http://blog.codecentric.de/en/2012/04/robot-framework-tutorial-a-complete-example/

Cheers
- Thomas

Angelo De Silva

unread,
Mar 3, 2014, 3:04:11 AM3/3/14
to robotframe...@googlegroups.com
Thanks for the replies guys,

Thomas your blog post is really helpful and clear in certain areas of organizing robot folder structure. However i'm finding it a bit unclear in order how i could apply it to my Tests and libraries. Currently I have just one file written (Since im still in the experiment stage :) ) where when i load that file in to RIDE it automatically separates the resources files , test cases and keywords in different sections, and i import in to RIDE the selenium library and a personal keyword library which i have created before executing these tests through RIDE. My personal keyword library which i have written is stored in the "Site packages" folder of the python installation folder in my C drive. This is the current structure of my robot files. 

If i am adopt the way you have explained in the blog, how should my current structure be changed ? Will it identify my keyword library ? do i have to start selenium server before running my tests (Because it automatically starts it in RIDE) ? How can i tell the system that these libraries and files are available in these locations and how can i command to save the output results files ? Currently i'm getting an error when running through Pybot so i cant experiment this , until i get it resolved thought of getting these clarified from you.

Thanks and Regards,
Angelo

Angelo De Silva

unread,
Mar 3, 2014, 6:02:27 AM3/3/14
to robotframe...@googlegroups.com
Hi Thomas,

Finally i got my Pybot issue resolved and the folder structure u have defined is working smoothly for my tests. However im still not sure about storing all my results and reports separately , because it stores all the reports in my testsuite folder , is there away to change this location so i can have my reports in a separate location for each execution ? 

Regards
Angelo

Laurent Bristiel

unread,
Mar 3, 2014, 7:03:58 AM3/3/14
to robotframe...@googlegroups.com

trin...@gmail.com

unread,
Mar 3, 2014, 12:41:26 PM3/3/14
to robotframe...@googlegroups.com
Thanks Laurent i will try it out :)

bharat joshi

unread,
Aug 7, 2016, 8:52:22 AM8/7/16
to robotframework-users
The Details of creation of folder structure in robot framework can be found on the blog

http://qtpseleniumautomation.blogspot.in/2016/08/use-of-robot-framework-to-create.html
Reply all
Reply to author
Forward
0 new messages