Hi Michael,
Thank you very much for your fast response:
1) I am using Version R_1737 (I had the same problem with the version
before, but did not find the problem)
2) My Webtest looks like (I do not put here the successful login):
<clickLink label="${link.suche}"/>
<setInputField htmlid="suche_begriffe" value="Monika
Suppersberger"/> => here I sometimes get the help page as a response, if
I change the name
<clickButton label="${button.suche}"/>
<clickLink label="${link.daten.aendern}"/> (tries to change the
data)
<verifyTitle text="${Kontrolle_Titel}"/> (verifies the
title)
<clickLink label="${link.emailhinzufügen}"/> (adds an email
address to the person)
<setInputField name="email[name]" value="[email protected]"/>
<clickButton label="${button.speichern}"/>
3) Log output (if you meant that...) - please see attachment, I saved it in
an .txt
4) xml File:
<?xml version="1.0" encoding="UTF-8"?>
<overview Implementation-Title="Canoo Webtest"
Implementation-Version="R_1736">
<folder name="001_TC00100deEmailEi">
<summary duration='27360' starttime='Fri Jan 09 19:45:42 CET 2009'
name='TC00100 [de] Email eines Mitarbeiters erfassen' successful='no'>
<topsteps total='16' notexecuted='4' failed='1' successful='11'></topsteps>
(11 because of the successful login)
<steps total='16' notexecuted='4' failed='1' successful='11'></steps>
<timingprofile number='7' average='3473'>
<range to='1' number='1' from='0'></range>
<range to='3' number='3' from='1'></range>
<range to='5' number='3' from='3'></range>
<range to='10' number='2' from='5'></range>
<range to='30' number='0' from='10'></range>
<range number='0' from='30'></range>
</timingprofile>
<failingstep description='' name='clickLink'>
</failingstep>
</summary>
</folder>
</overview>
I am not sure if the information concerning the log is enough, if not
please let me know (if I should add specific logging...).
Thank you very much!
Yours,
Anke
2009/1/9 Michael Habbert <[email protected]>
> Hi Anke,
>
> the usual questions are:
>
> What does your Webtest look like, which version do you use, did you try
> something else, was does the log say about the problem?
>
> Yours,
> Michael
>
>
> Anke Mündler schrieb:
>
> Hello,
>>
>> I am really desperate dealing with this problem...
>> I am testing a seach functionality using setinputfield to enter the
>> "searched person".
>>
>> If I try it with for instance my name, the test works perfect.
>> If I try another name, the test does not work - setinputfield gets a page
>> back (in this case this is the help page).
>> Usually setinputfield shouldn't get a response page isn't it?
>> I really do not know why it works one time and with other people it does
>> not work...
>> Does anybody have an idea which causes this strange behaviour could have?
>>
>> Really looking forward to some hints!
>>
>> Thanks,
>> Anke
>>
>>
>> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
D:\WebTest\Canoo_Webtest\Canoo\bin\..\bin\webtest.bat -f
"D:\WebTest\Canoo_Webtest\Canoo\bin\..\resources\webtestsRunner.xml"
-Dwt.headless=
-Dwebtest.testdir=D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1
-Dwebtest.testfile=build.xml
"java.exe" -Xms64M -Xmx256M -cp
"D:\WebTest\Canoo_Webtest\Canoo\bin\..\lib\ant-launcher-1.7.0.jar"
-Dant.library.dir="D:\WebTest\Canoo_Webtest\Canoo\bin\..\lib"
"-Dlog4j.configuration=file:/D:\WebTest\Canoo_Webtest\Canoo\bin\..\lib/log4j.properties"
org.apache.tools.ant.launch.Launcher -nouserlib -lib
"D:\WebTest\Canoo_Webtest\Canoo\bin\..\lib\build;D:\WebTest\Canoo_Webtest\Canoo\bin\..\lib\build\clover.jar"
-f "D:\WebTest\Canoo_Webtest\Canoo\bin\..\resources\webtestsRunner.xml"
-Dwt.headless=
-Dwebtest.testdir=D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1
-Dwebtest.testfile=build.xml
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar
Buildfile: D:\WebTest\Canoo_Webtest\Canoo\bin\..\resources\webtestsRunner.xml
wt.init:
wt.init.headless:
wt.defineTimestamps:
wt.defineTasks.init:
wt.defineTasks:
wt.webtestMonitor:
wt.defineMacros:
[echo] No macro to define
wt.generateDtd:
[groovyScript] Scanning for entities...
[groovyScript] 0 entities found
[groovyScript] Already uptodate:
D:\WebTest\Canoo_Webtest\Canoo\resources\dtd\Project.dtd
wt.generateDefinitions:
[groovyScript] Definitions dir not found:
D:\WebTest\Canoo_Webtest\Canoo\resources\definitions. Ignoring.
wt.createReportsFolder:
wt.deleteReports:
wt.parallel.init:
wt.before.testInWork:
wt.testInWork:
[echo] Execution build.xml in dir
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1
testSuiteGerman:
TUAdressbuch:
TC0100:
[webtest] INFO (com.canoo.webtest.engine.Configuration) - Using haltonerror
from project property wt.config.haltonerror: false
[webtest] INFO (com.canoo.webtest.engine.Configuration) - Using
haltonfailure from project property wt.config.haltonfailure: false
[webtest] INFO (com.canoo.webtest.engine.Configuration) - Using resultpath
from project property wt.config.resultpath:
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1/webtest-results
[webtest] INFO (com.canoo.webtest.engine.Configuration) - Using saveresponse
from project property wt.config.saveresponse: true
[webtest] INFO (com.canoo.webtest.engine.Configuration) - Using summary from
project property wt.config.summary: true
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - No configuration
defined, using default configuration.
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest
"TC00100 [de] Email eines Mitarbeiters erfassen"
(D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\tests\Person-Mitarbeiter\Email.xml:16:
)
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: R_1736.
[null] INFO (com.canoo.webtest.engine.Configuration) - Using haltonerror
from project property wt.config.haltonerror: false
[null] INFO (com.canoo.webtest.engine.Configuration) - Using
haltonfailure from project property wt.config.haltonfailure: false
[null] INFO (com.canoo.webtest.engine.Configuration) - Using resultpath
from project property wt.config.resultpath:
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1/webtest-results
[null] INFO (com.canoo.webtest.engine.Configuration) - Using saveresponse
from project property wt.config.saveresponse: true
[null] INFO (com.canoo.webtest.engine.Configuration) - Using summary from
project property wt.config.summary: true
[null] INFO (com.canoo.webtest.engine.Configuration) - Creating result
directory:
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi
[null] INFO (com.canoo.webtest.engine.Configuration) - Surfing with
default browser Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
[steps] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps
"Implicit <steps> task" (1/16)
[invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke
"Login auf testpage" (1/16)
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - getting
response for url: https://testpage/
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - Setting
password for username: am
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/jquery-1.2.6.js', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/jquery.hotkeys.js', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/prototype.js?1204142932', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/effects.js?1204142932', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/dragdrop.js?1204142932', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/controls.js?1204142932', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/application.js?1227609572', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/APP_ajax_formhelper/listen_mehrfachauswahl_helper.js',
but got 'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/kalender/calendar.js', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/kalender/lang/APP-calendar-de.js', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/kalender/calendar-setup.js', but got
'application/x-javascript'.
[invoke] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected
content type of 'application/javascript' or 'application/ecmascript' for
remotely loaded JavaScript element at
'https://testpage/javascripts/forum/application.js', but got
'application/x-javascript'.
[invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to https://testpage/ (text/html)
[invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Content loaded
in newly opened window, its content will become current response
[invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now: https://testpage/
[clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink
"Click link: Login" (2/16)
[clickLink] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to https://testpage/admin/authentifizierung (text/html)
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
current window changed, it will become current response
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now: https://testpage/admin/authentifizierung
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setInputField (3/16)
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setInputField (4/16)
[clickButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickButton (5/16)
[clickButton] INFO (com.canoo.webtest.steps.request.ClickButton) - ->
findTarget(by input): name=action[apply] value=Anmelden
[clickButton] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor)
- basic authentication scheme selected
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to
https://testpage/admin/authentifizierung/lookup?zuname=M%C3%BCndler&vorname=Anke&action%5Bapply%5D=Anmelden
(text/html)
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
current window changed, it will become current response
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now:
https://testpage/admin/authentifizierung/lookup?zuname=M%C3%BCndler&vorname=Anke&action%5Bapply%5D=Anmelden
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setInputField "Set password field pw: password" (6/16)
[setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Current
form set to (action=/login)
[setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) -
Found 1 suitable fields, considering only the first one
[clickButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickButton (7/16)
[clickButton] INFO (com.canoo.webtest.steps.request.ClickButton) - ->
findTarget(by input): name= value=Anmelden
[clickButton] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor)
- basic authentication scheme selected
[clickButton] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor)
- basic authentication scheme selected
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to https://testpage/ (text/html)
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
current window changed, it will become current response
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now: https://testpage/
[verifyText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyText
"Verify that text is contained in the page" (8/16)
[clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink
(9/16)
[clickLink] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) -
basic authentication scheme selected
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to https://testpage/adressbuch/adressbuch (text/html)
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
current window changed, it will become current response
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now: https://testpage/adressbuch/adressbuch
[setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setInputField (10/16)
[setInputField] INFO
(org.apache.commons.httpclient.auth.AuthChallengeProcessor) - basic
authentication scheme selected
[setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to https://testpage/hilfe (text/html)
[setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
current window changed, it will become current response
[setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Current
form set to none
[setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now: https://testpage/hilfe
[clickButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickButton (11/16)
[clickButton] INFO (com.canoo.webtest.steps.request.ClickButton) - ->
findTarget(by input): name= value=suchen
[clickButton] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor)
- basic authentication scheme selected
[clickButton] INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor)
- basic authentication scheme selected
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
window changed to
https://testpage/adressbuch/adressbuch?mit=1&org=1&stu=1&suchtext= (text/html)
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Content of
current window changed, it will become current response
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current form
set to none
[clickButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current
response now: https://testpage/adressbuch/adressbuch?mit=1&org=1&stu=1&suchtext=
[clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink
(12/16)
INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "TC00100
[de] Email eines Mitarbeiters erfassen"
(D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\tests\Person-Mitarbeiter\Email.xml:16:
)
INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi\WebTestReport.xml
INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
all:
testSuiteEnglish:
TUAdressbuch:
testSuite:
wt.groovyTests:
[groovyScript] Test dir for Groovy WebTest doesn't exist
wt.parallel.waitForCompletion:
wt.htmlReports.init:
wt.htmlReports:
[mkdir] Created dir:
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\resources
[copy] Copying 20 files to
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\resources
[xslt] Transforming into
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results
[xslt] Processing
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi\WebTestReport.xml
to
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi\WebTestReport.html
[xslt] Loading stylesheet
D:\WebTest\Canoo_Webtest\Canoo\resources\WebTestReport.xsl
[xslt] Transforming into
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results
[xslt] Processing
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi\WebTestReport.xml
to
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi\WebTestSummary.xml
[xslt] Loading stylesheet
D:\WebTest\Canoo_Webtest\Canoo\resources\WebTestReportSummaryExtractor.xsl
[groovyScript] Reading
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\001_TC00100deEmailEi\WebTestSummary.xml
[groovyScript] Writing
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\WebTestOverview.xml
[xslt] Processing
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\WebTestOverview.xml
to
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\index.html
[xslt] Loading stylesheet
D:\WebTest\Canoo_Webtest\Canoo\resources\WebTestReportOverview.xsl
wt.openResultFile.init:
wt.openResultFile:
wt.junitLikeReports:
[xslt] Processing
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\WebTestOverview.xml
to
D:\WebTest\eclipse-SDK-3.4.1-win32\Workspace\APP_Adressbuch_V1x1\webtest-results\WebTestOverview.junit.xml
[xslt] Loading stylesheet
D:\WebTest\Canoo_Webtest\Canoo\resources\WebTestOverview2JUnit.xsl
wt.countWebtestResults: