qaf
qaf copied to clipboard
QAF meta-data rules validation support for test authored in java
QAF Version: 3.0.0
Need to have support of meta-data rules validation for test authored in java
Steps To Reproduce
1. Create test case in java
2. Set meta rules using `metadata.rules` property
3. run test in dry run mode, set `dryrun.mode=true`
Expected behavior
in dry run mode, If test case meta-data not following meta-data rule test should be skipped with Meta-data rule failure
Actual behavior
If test case meta-data not following meta-data rule test test are passing
@Test(description="a sample scenario")
public void testWithGivenWhenThen() {
scenario().
given("a precondition",()->{
//write appropriate code...
}).
when("some action performed",()->{
//write appropriate code...
}).
then("it should have expected outcome",()->{
//write appropriate code...
}).
execute();
}
properties:
dryrun.mode=true
metadata.rules=[{"key":"groups","values":["P1","P2","P3","sanity","regression","module1"],"required":true}]