Check system before running testng test

21 views
Skip to first unread message

mike

unread,
May 13, 2013, 6:37:32 AM5/13/13
to testng...@googlegroups.com
Hi,

Before we run/execute a suite we want to check things like if we have  Windows/Linux/Mac as platform. The reason for this is that we don't want to start linux specifc tests ( part of the suite) since they will fail on a windows platform so it is better not to start this suite at all.
Other things we want to do is check for specific hw on the platform otherwise we will not run the suite.

Is there a common technique/framework to use to make these checks/conditions before even starting the suite?


br,

//mike

Tomek Kaczanowski

unread,
May 13, 2013, 6:57:05 AM5/13/13
to testng...@googlegroups.com
I do not think there is a common pattern for this.

My question would be if that is the work for TestNG or maybe for your
build tool to run appropriate suite of test depending on the
environment. With Gradle you would do it with some if-s, with Maven
use profiles.

I would be also happy to hear how others deal with such (common, I
believe) requirement.

--
Regards / Pozdrawiam
Tomek Kaczanowski
http://practicalunittesting.com

Krishnan Mahadevan

unread,
May 14, 2013, 5:58:01 AM5/14/13
to testng...@googlegroups.com
In simple terms, why not have the tests specific to OS platforms be grouped based on the OS flavors and just create suites for different OS flavors ? Wouldn't that work here ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/



--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages