On Thu, 2015-01-22 at 23:48 -0800, Sorin wrote:
> Hi Everyone!
>
> I am very new to testNG, IntelliJ and Java development, so please be
> patient with me :)
I generally avoid setting up projects directly with the IDE, I much
prefer a separate file specifying dependencies etc. I used to be a fan
of the Gradle eclipse and idea plugins, getting Gradle to set up the
Eclipse and IntelliJ IDEA plugins. Now though Eclipse Gradle plugin
works well, and the IntelliJ IDEA Gradle plugin is seeming excellent.
So for me, Step 1 is set up a Gradle build for the project, the Step 2
is import the Gradle build into IntelliJ IDEA thereby making a project.
> My goal is to create performance tests using Selenium WebDriver, IntelliJ
> IDEA, Java and testNG.
>
> What I have so far is a Java class in IntelliJ that is working fine (for
> one user though):
> - It is a very simple one, until I get to know enough to scale it to a full
> performance test
>
> Since I have no idea how to setup testNG, including the annotations and
> everything else about it, I am wondering... is there any documentation
> about starting with testNG & IntelliJ from zero?
Set up a Gradle build (see
http://www.gradle.org), one I have does thing
such as:
apply plugin: 'java'
sourceCompatibility = 8
repositories {
jcenter()
mavenCentral()
}
dependencies {
testCompile 'org.testng:testng:6.8.17'
// It seems that TestNG is failing to transitively demand this
dependency :-((
testCompile 'com.google.inject:guice:2.0'
}
test {
useTestNG()
}
clean.doLast {
delete 'test-output'
}
defaultTasks 'test'
Ensure you have the IntelliJ Gradle plugin installed, import the Gradle
project, have everything Just Work™
--
Russel.
=============================================================================
Dr Russel Winder t:
+44 20 7585 2200 voip:
sip:russel...@ekiga.net
41 Buckmaster Road m:
+44 7770 465 077 xmpp:
rus...@winder.org.uk
London SW11 1EN, UK w:
www.russel.org.uk skype: russel_winder