-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QAFTestStep not logged to test-results (custom TestNG framework). #445
Comments
Please find the debug log below:
|
Refer pom file from sample maven project. |
@cjayswal yes I used it for the reference, but add some customizations for project specific:
|
Maven aspectj-maven-plugin is not specific to eclipse. If you don't want to use |
@cjayswal I am using the aspectj-maven-plugin. But my configuration is a little different, as with yours config Lombok dependency is not working.
With your configuration added, I see the following error: [WARNING] You aren't using a compiler supported by lombok, so lombok will not work and has been disabled. [WARNING] advice defined in com.qmetry.qaf.automation.step.JavaStepReporter has not been applied [Xlint:adviceDidNotMatch] Below is my configuration for plugins section:
|
QAF Version
Latest release - 3.2.0
We have existing maven solution with large amount of selenium tests written in java with testNG. Now we would like to import execution results into QMetry for Jira.
We decided to integrate QAF package into our existing solution, to get results in qas format, with failure screenshots and steps included.
As a starter, I followed the example in your repository: https://github.com/qmetry/qtm4j-automation-sample-projects/blob/master/QAF/pom.xml a
I managed to set our driver instance to qaf, so currently we have got test results with screenshots. But now I still have an issue with it:
I started marking our steps (we call them pageActions) with @QAFTestStep annotations, to see them as checkpoints in the generated test result jsons. I have also added resources/application.properties with the parameter step.provider.pkg=pageActions (pageActions is a full name of our package with steps. I have added related plugins and dependencies for aspectj and qaf into our pom.xml . I can see that aspects has been generated (AjcClosure classes generated in target directory after the build). But unfortunately steps are not getting added to test result jsons. Could you please suggest where could be the problem or how to achieve what we want?
Steps To Reproduce
Expected behavior
Method marked with @QAFTestStep annotation gets added as checkpoint to test-results/ ... .json file
Actual behavior
Only errors and assertions are present in test-results/ ... .json file
Is the issue reproducible on runner?
Test case sample
I prepared a temp repository with sample maven project with our dependencies, where the issue can be reproduced:
https://github.com/mialeska/tmp-ui-tests/tree/test-results
Please find generated test results in the test-results branch.
The text was updated successfully, but these errors were encountered: