Hello -

I'm a new Canoo webtest user and need some assistance troubleshooting a
blocking problem. 

Summary:
My test is supposed to invoke the index.php page for a site hosted on my
machine with Apache (on Windows using XAMPP).

Here is my test:


<?xml version="1.0"?>

<!DOCTYPE project SYSTEM "../dtd/Project.dtd">

<project default="test">
        <target name="test">
                <webtest name="testInstallScreenIsDisplayed">
                        <config
                                host="localhost"
                                port="8080"
                                protocol="http"
                                basepath="CORE"
                                saveresponse="true" >
                                <option
name="ThrowExceptionOnScriptError" value="false"/>
                        </config>
            <steps description="Navigate to CORE home page for the first
time and verify the install link is present." >
                                <invoke 
                                        description="Get CORE Home Page
first time. This should be the install screen."
                                        url="index.php" />
                                <verifyTitle 
                                        description="Verify the home
page title"
                                        text="- Home" />
                                <verifyElement
                                        description="Verify the install
link is present."
                                        type="a"
        
text="http://localhost:8080/core/admin/install"; />
            </steps>
            </webtest>
        </target>
</project>


1.      The test fails with a 404 Object not found! Error in the report.
2.      I have confirmed that I can open this page manually through the
browser (both IE and Firefox).
3.      I have confirmed that other pages will work (like google, and a
local static html page, etc)

Here is the debug log from running the test:
------------------------------------------------------------------------
---------------
[steps]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps
"Navigate to CORE home page for the first time and verify the install
link is present." (1/3)
   [invoke]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
invoke "Get CORE Home Page first time. This should be the install
screen." (1/3)
   [invoke]  INFO (com.canoo.webtest.steps.request.TargetHelper) -
getting response for url: http://localhost:8080/CORE/index.php
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:125] Error in style rule. Invalid token "*". Was expecting one
of: <S>, "}", ";", <IDENT>.

   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:125] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:195] Error in style rule. Invalid token "*". Was expecting one
of: <S>, "}", ";", <IDENT>.

   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:195] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:287] Error in style rule. Invalid token "*". Was expecting one
of: <S>, "}", ";", <IDENT>.

   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:287] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:642] Error in style rule. Invalid token "*". Was expecting one
of: <S>, "}", ";", <IDENT>.

   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:642] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:804] Error in style rule. Invalid token "*". Was expecting one
of: <S>, "}", ";", <IDENT>.

   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:804] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:893] Error in style rule. Invalid token "*". Was expecting one
of: <S>, "}", ";", <IDENT>.

   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/button/assets/skins/sam/button.
css [7:893] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:999] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:999] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1075] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1075] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1214] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1214] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1414] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1414] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1650] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:1650] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:2468] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:2468] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:4433] Error in style rule. Invalid token "*". Was expecting
one of: <S>, "}", ";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/container/assets/skins/sam/cont
ainer.css [7:4433] Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/fonts/fonts-min.css [7:55]
Error in style rule. Invalid token "*". Was expecting one of: <S>, "}",
";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/fonts/fonts-min.css [7:55]
Ignoring the following declarations in this rule.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS error:
http://localhost:8080/CORE/inc/yui/build/fonts/fonts-min.css [7:237]
Error in style rule. Invalid token "*". Was expecting one of: <S>, "}",
";", <IDENT>.
   [invoke]  WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler)
- CSS warning:
http://localhost:8080/CORE/inc/yui/build/fonts/fonts-min.css [7:237]
Ignoring the following declarations in this rule.
   [invoke]  INFO (com.gargoylesoftware.htmlunit.WebClient) -
statusCode=[404] contentType=[text/html]
   [invoke]  INFO (com.gargoylesoftware.htmlunit.WebClient) - <?xml
version="1.0" encoding="ISO-8859-1"?>
   [invoke] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   [invoke]   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
   [invoke] <html xmlns="http://www.w3.org/1999/xhtml"; lang="en"
xml:lang="en">
   [invoke] <head>
   [invoke] <title>Object not found!</title>
   [invoke] <link rev="made" href="mailto:[EMAIL PROTECTED]" />
   [invoke] <style type="text/css"><!--/*--><![CDATA[/*><!--*/ 
   [invoke]     body { color: #000000; background-color: #FFFFFF; }
   [invoke]     a:link { color: #0000CC; }
   [invoke]     p, address {margin-left: 3em;}
   [invoke]     span {font-size: smaller;}
   [invoke] /*]]>*/--></style>
   [invoke] </head>
   [invoke] 
   [invoke] <body>
   [invoke] <h1>Object not found!</h1>
   [invoke] <p>
   [invoke] 
   [invoke] 
   [invoke]     The requested URL was not found on this server.
   [invoke] 
   [invoke]   
   [invoke] 
   [invoke]     If you entered the URL manually please check your
   [invoke]     spelling and try again.
   [invoke] 
   [invoke]   
   [invoke] 
   [invoke] </p>
   [invoke] <p>
   [invoke] If you think this is a server error, please contact
   [invoke] the <a href="mailto:[EMAIL PROTECTED]">webmaster</a>.
   [invoke] 
   [invoke] </p>
   [invoke] 
   [invoke] <h2>Error 404</h2>
   [invoke] <address>
   [invoke]   <a href="/">localhost</a><br />
   [invoke]   
   [invoke]   <span>11/04/08 09:21:50<br />
   [invoke]   Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h
mod_autoindex_color PHP/5.2.6</span>
   [invoke] </address>
   [invoke] </body>
   [invoke] </html>
   [invoke] 
   [invoke] 
 INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
Adding reference: ant.PropertyHelper
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest
"testInstallScreenIsDisplayed"
(c:\PROGRA~1\Webtest\COREAC~1\tests\installCORE.xml:7: )
------------------------------------------------------------------------
---------------
Anyone have any ideas why this page is not being opened correctly by
Webtest? I see the .css errors and warnings, but given that I can open
the page with a browser ok, I'm not sure what the problem might be. Is
there a special way to handle php files?


________________________________________ 
Sean Stolberg 
Software Developer 
Pacific Northwest National Laboratory 

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

Reply via email to