2. Implement Runner¶
A runner is a Java class which meets the following requirements:
- Class is
public
and implementsmain()
method. - The
main()
method invokes Artos’ runner object as shown in below example.
Steps
- Create a Java class under required package structure
- Implement
main()
method and Runner code as shown in the example below.
1 2 3 4 5 6 7 8 9 10 | package com.tests;
import com.artos.framework.infra.Runner;
public class ArtosMain {
public static void main(String[] args) throws Exception {
Runner runner = new Runner(ArtosMain.class);
runner.run(args);
}
}
|