[ http://webtest-community.canoo.com/jira/browse/WT-485?page=all ]
     
Marc Guillemot closed WT-485:
-----------------------------

    Fix Version: Future versions
     Resolution: Invalid
      Assign To: Marc Guillemot

It seems that your tests are not correct, not WebTest

What I can see:
- you should use
   webtest -Dwt.testInWork=tests\accounts\Accounts_0007.xml
and not 
  webtest -Dwt.testInWork tests\accounts\Accounts_0007.xml
- it seems that you haven't set the property port


> use latest R_1736 run test , show error "[taskdef] Could not load definitions 
> from resource net/sf/antcontrib/antlib.xm l. It could not be found."
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: WT-485
>          URL: http://webtest-community.canoo.com/jira/browse/WT-485
>      Project: WebTest
>         Type: Task

>  Environment: platform: XP
> canoo release: R_1736
>     Reporter: jye.jane
>     Assignee: Marc Guillemot
>      Fix For: Future versions

>
> Hi,
>      I  attempted to use latest canoo release R_1736 run my test suites.
> 1) download the latest build
> 2) create new project with wt.createProject
> 3) add my project test suites into it
> 4) input following command in command prompt
>            cd <webtest_home>
>            webtest -Dwt.testInWork tests\accounts\Accounts_0007.xml
>      it shows error messages on screen as follows:
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> "C:\Program Files\Java\jdk1.6.0_06\bin\java.exe" -Xms64M -Xmx256M -cp 
> "D:\Code\build\bin\..\lib\ant-launcher-1.7.0.jar" 
> -Dant.library.dir="D:\Code\build\bin\..\lib" 
> "-Dlog4j.configuration=file:/D:\Code\build\bin\..\lib/log4j.properties" org
> .apache.tools.ant.launch.Launcher -nouserlib -lib 
> "D:\Code\build\bin\..\lib\build;D:\Code\build\bin\..\lib\build\clover.jar" 
> -Dwt.testInWork tests\accounts\Accounts_0007.xml
> Buildfile: build.xml
>   [taskdef] Could not load definitions from resource 
> net/sf/antcontrib/antlib.xml. It could not be found.
> wt.init:
> wt.init.headless:
> wt.defineTimestamps:
> wt.defineTasks.init:
> wt.defineTasks:
> wt.webtestMonitor:
>      [echo] D:\Code\Canoo/tools/WebTestMonitor.groovy
> wt.defineMacros:
>      [echo] Defining project macros and custom steps (if any)
> wt.generateDtd:
> [groovyScript] Scanning for entities...
> [groovyScript] 2 entities found
> [groovyScript] Already uptodate: D:\Code\build\Sugar\dtd\Project.dtd
> wt.generateDefinitions:
> [groovyScript] Scanning D:\Code\build\Sugar\definitions for definitions...
> [groovyScript] 0 definitions found
> [groovyScript] Already uptodate: D:\Code\build\Sugar\definitions.xml
> wt.createReportsFolder:
>     [mkdir] Created dir: D:\Code\build\Sugar\2009.01.06_03.31.17
> wt.deleteReports:
> wt.parallel.init:
> wt.before.testInWork:
> wt.testInWork:
>      [echo] Execution Accounts_0007.xml in dir 
> D:\Code\build\Sugar\tests\accounts
> test:
> BUILD FAILED
> D:\Code\Canoo\webtest.xml:233: The following error occurred while executing 
> this line:
> D:\Code\build\Sugar\tests\accounts\Accounts_0007.xml:5: 
> java.lang.NumberFormatException: For input string: "${port}"
> Total time: 1 second
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
> If you know the reason, please help me.
> THX, Jane

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to