Automation test project for function backend service
- Go to
pom.xmland check for value ofspring.config.location - Specify which properties file will be used (default is
application-local.properties) - If testing only several features, change the default value in
DefinitionTestSuitewith the specified features' tag - Separate each feature's API in a separate package and steps folder (e.g., testing authentication may create
package
api.authand stepssteps.Auth; NOTE the use of capital case characters) - Each API should extend BaseAPI to be able to use value of properties configuration
- After finish developing test, REVERT the value of
spring.config.locationinpom.xmlANDtagsinDefinitionTestSuite, then commit
- Use
@Regressionfor features which will be tested without specifying specific tags - Use
@Positivefor features which are tested in positive condition (happy flow) - Use
@Negativefor features which are tested in negative condition - Add custom annotation for features to ease testing separate feature (e.g.: Sanity test uses
@Sanity) - If needed, add more properties value in the properties file and also the Java file