We would like to create test report specific to user who fired the request in the server. If we change pom this way
<configuration>
<outputDirectory>${basedir}/target/${user.name}</outputDirectory>
</configuration>
This produces the user name of the server, not the individual who fired the test. I have seen one possible solution like mvn surefire-report:report -DoutputDirectory=newpath. But wondering, how can we pass the user name through command prompt.
Any guidance would be very much appreciated.
Create a property in your pom file:
Then you use it like this: