This is a demo Selenium + TestNG Maven project to automate basic ServiceNow ITSM workflows:
- Login
- Create Incident
- Resolve Incident
- Service Catalog (sample)
- Java 11+
- Maven
- Chrome browser (or change browser in config.properties)
- Eclipse or IntelliJ IDE
- Internet access to download dependencies
- Clone or unzip the project.
- Update
config.propertieswith your ServiceNow demo instance URL and credentials. - From command line:
mvn clean test(or runtestng.xmlfrom IDE) - Tests use WebDriverManager to auto-download drivers.
- src/test/java/pages -> Page Object classes
- src/test/java/tests -> Test classes
- src/test/java/utils -> Utility / BaseTest
- testng.xml, pom.xml, config.properties
This is a demo template. Update locators in page classes according to your ServiceNow instance UI.