- Code: Select all
Unrecognized command line argument "3".
Use "help" command for information about available commands.
This is a default statement that gets printed out by the application for unrecognized arguments that are passed into it. After looking at the framework arguments that are posted on the console of the JUnit Test Runner, I conclude that the unrecognized parameter is coming from one of the framework arguments:
- Code: Select all
Framework arguments: -version 3 -port 56458 -testLoaderClass .......
This only happens when I try and execute Window Tester Pro tests on my application under test. I figure that what is happening is that those framework arguments get ignored when they are passed into a sample app like the Eclipse IDE; however, these framework arguments, instead of being ignored, are being consumed by my application which is attempting to verify the validity of arguments and parameters that are passed into it.
This leaves me with the following questions:
1. Where are these Framework arguments coming from? How would I change them if, for example, I wanted to remove that portion that loads the "-version 3" part of those framework arguments?
2. Is there a way that I can tell the JUnit Test loader to consume certain arguments, or, better yet, not pass certain arguments down to the application under test?