Following is my test case path:
src/squashTA/resources/com/java/src/main/org/ta/UntitledTestCase2.java
My test file name is test2.ta and the code is:
Code : Tout sélectionner
SETUP :
LOAD com/java/src/main AS javaTestCodeFile
TEST :
CONVERT javaTestCodeFile TO script.java (compile) AS seleniumTestCompiled
CONVERT seleniumTestCompiled TO script.java.selenium2 (script) USING $(org.ta.UntitledTestCase2) AS seleniumTest
EXECUTE execute WITH seleniumTest AS javaTestresults
ASSERT javaTestresults IS success
Code : Tout sélectionner
[ERROR] It must have java sources in a java subdirectory in resources directory
[ERROR] Test Automation Engine error (non SUT) : method 'convert' from engine component of class 'org.squashtest.ta.plugin.commons.converter.FileToJavaCodeBundle' with argument 'org.squashtest.ta.framework.components.FileResource' has thrown an exception.
org.squashtest.ta.framework.exception.BadDataException: Java code compilation failed:
Usage: javacTask <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
It would really help a lot.
Thank You.