-
Notifications
You must be signed in to change notification settings - Fork 4
Quick Start
Test cases should be put in the src/test/java folder. They can be coded in java or Groovy.
Test classes should have the spring Context configuration annotation and extend the AbstractTestNGSpringContextTests class as shown below:
@ContextConfiguration( locations=("classpath:ws-int-test-beans.xml") )
class WSFuncTests extends AbstractTestNGSpringContextTests
ws-int-test-beans.xml is the spring beans file located at src/main/resources folder.
Test methods should return void and be annotated with @Test (org.testng.annotations.Test). Also, it is a best practice to provide a groups parameter to the annotation such that you can run targeted tests. For e.g "long-running", "test-interface-1". Note that the groups can be comma separated values and same test can belong to multiple groups.
@Test(groups="schema-test")
public void sendHolidayRequest()
Take the following scenario, Web Service1 Invokes Web Service2 and expects a synchronous reply.