testing - Jenkins build web application and tests -


i'm trying setup jenkins testing web application. setup have gradle build file.

apply plugin: 'java' apply plugin: 'maven' defaulttasks 'clean','compilejava','test'  group = 'automationtest' version = '1.1-snapshot'  description = ""  repositories {       maven { url "http://repo.maven.apache.org/maven2" } } dependencies {     compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version:'2.52.0'     compile group: 'org.uncommons', name: 'reportng', version:'1.1.4'     compile group: 'org.apache.velocity', name: 'velocity', version:'1.7'     compile group: 'com.google.inject', name: 'guice', version:'4.0'     testcompile group: 'junit', name: 'junit', version:'3.8.1'     testcompile group: 'org.testng', name: 'testng', version:'6.9.4' } test{      usetestng() {         suites "src/test/resources/basictestxml/logintesten.xml"     } } 

with above build file can run automation test in jenkins, if have localhost running application. make less dependable of human interaction want have jenkins first build web application , after run automation tests on built web application. possible? , how can make happen? can build them git or need @ same location happen? webapp ant project bring difficulties?

if want make jenkins independent, can e. g. make gradle build trigger ant build builds web application , deploy result somewhere, starting container deploy to. after tests finished gradle build can stop running container again.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -