Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robot Framework Test Automation

You're reading from   Robot Framework Test Automation Create test suites and automated acceptance tests from scratch

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783283033
Length 98 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sumit Bisht Sumit Bisht
Author Profile Icon Sumit Bisht
Sumit Bisht
Arrow right icon
View More author details
Toc

Test naming conventions


Test naming conventions are important for the standardization and coherence of the tests. It also indicative of the quality of tests as the naming and placement of tests; and the use case scenarios indicate their order and relevance, which can be very useful when the tests are maintained in future.

Creating an execution order

In order to name tests, the Robot Framework is very peculiar; it uses the configuration file and folder names to determine the execution order and test naming.

For example, consider the following arrangement of different test files and folders in the test project in the file system:

application/

tests/

Test1.txt

Other tests/

Another test.txt

Running the pybot in the application folder will result in creation of different testsuites in the report based on the order of their presence in the file system. The following screenshot shows the file structure of a Robot Framework test:

After running, the tree command lists out the file/folder...

You have been reading a chapter from
Robot Framework Test Automation
Published in: Oct 2013
Publisher: Packt
ISBN-13: 9781783283033
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image