Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Here are described the steps to write karate integration tests.

StepsĀ 

Project Setup

If you want to create module from scratch then create you maven module within folio-integration-tests folder like acquisitions (See also pom.xml file from folio-integration-tests/acquisitions/pom.xml for example)

...

Code Block
languagejava
@BeforeAll
public void financeApiTestBeforeAll() {
	runFeature("classpath:domain/mod-finance/finance-junit.feature");
}

@AfterAll
public void financeApiTestAfterAll() {
	runFeature("classpath:common/destroy-data.feature");
}

Run integration test

Code Block
languagebash
titleRun examples
mvn test -Dtest=FinanceApiTest -pl acquisitions

Where instead of "-pl acquisitions" argument you should use your own project name.

Result of Jenkins after CI build

https://jenkins-aws.indexdata.com/job/FOLIO_Reference_Builds/job/folio-api-tests-karate/237/cucumber-html-reports/overview-features.html

...