It looks like you are checking a title in a test step, and that the regular
expression you entered as the title is incorrect or that it is having
problems with the character set you are using. I'm not sure of any
tips/tricks for getting the canoo tests to work with UTF-16 character sets.
Perhaps someone else knows?
Mike.
On 2/6/07, jason.jiang <[EMAIL PROTECTED]> wrote:
Hi,
I run mvn integration-test with appfuse2.0 M2 (modular-jsf), but throw
Exception...
Login:
log4j:WARN No appenders could be found for logger
(com.canoo.webtest.ant.TestSte
pSequence).
log4j:WARN Please initialize the log4j system properly.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
E:\dev\appfuse2.0\modular-jsf\web\src\test\resources\web-tests.xml:23:
Canoo
Web
test: R_1454.
Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException:
Unexpected ex
ception caught: java.util.regex.PatternSyntaxException: Dangling meta
character
'?' near index 3
.*??.*
^, Step: VerifyTitle at
E:\dev\appfuse2.0\modular-jsf\web\src\test\resources\
login.xml:2: with
(taskName="verifytitle")com.canoo.webtest.engine.StepExecutio
nException: Unexpected exception caught:
java.util.regex.PatternSyntaxException:
Dangling meta character '?' near index 3
.*??.*
^, Step: VerifyTitle at
E:\dev\appfuse2.0\modular-jsf\web\src\test\resources\
login.xml:2: with (taskName="verifytitle")
at
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:413)
at com.canoo.webtest.steps.Step.execute(Step.java:109)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.
java:43)
at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.jav
a:31)
at com.canoo.webtest.steps.Step.execute(Step.java:106)
at org.apache.tools.ant.Task.perform(Task.java:364)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:164)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:108)
at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.util.regex.PatternSyntaxException: Dangling meta character
'?' n
ear index 3
.*??.*
^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.sequence(Pattern.java:1787)
at java.util.regex.Pattern.expr(Pattern.java:1687)
at java.util.regex.Pattern.compile(Pattern.java:1397)
at java.util.regex.Pattern.<init>(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:840)
at
com.canoo.webtest.engine.RegExStringVerifier.verifyStrings(RegExStrin
gVerifier.java:28)
at
com.canoo.webtest.steps.verify.AbstractVerifyTextStep.verifyStrings(A
bstractVerifyTextStep.java:61)
at
com.canoo.webtest.steps.verify.AbstractVerifyTextStep.verifyText(Abst
ractVerifyTextStep.java:65)
at
com.canoo.webtest.steps.verify.VerifyTitle.doExecute(VerifyTitle.java
:25)
at com.canoo.webtest.steps.Step.execute(Step.java:106)
... 38 more
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 59 seconds
[INFO] Finished at: Tue Feb 06 16:46:42 CST 2007
[INFO] Final Memory: 20M/36M
[INFO]
------------------------------------------------------------------------
How that thing occur? Any idea about how to fix it?
Thanks!
jason.jiang
--
View this message in context:
http://www.nabble.com/Run-mvn-integration-test--Canoo-Web-test-Error%21%21%21-tf3179622s2369.html#a8822956
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]