Hello,
I set the logs of com.canoo.webtest.engine.Context to DEBUG.
It seems that the current response did not changed due to Javascript
(line 14).
then on the [clickButton] (line 18 and 19) that the content is
Listactivities.srv and the previous is Mainmenu.srv.
The fact is that it is not true. The real content is Mainmenu.srv. I
know it is a bit confusing but here the cinematic of the test
application it is very simple :
1rst page Mainmenu.srv
2nd page Listactivities.srv
3rd page Mainmenu.srv
4th page Customermenu.srv
So the 2 last logged clickButton are PF3 (from Listactivities.srv to
Mainmenu.srv) and ENTER (from Mainmenu.srv to Customermenu.srv).
So the last url before clicking ENTER is Mainmenu.srv and it is not
considered as the current response.
As the two pages (Lisactivities.srv and Mainmenu.srv) have a ENTER
button it seems that the program takes the one from Listactivities.srv...
To complete this 'painting', in this application the buttons and other
parts of the page are 'rewrited' with Javascript when the page load.
This seems to pertube the
process of search of the current response. Do you have an idea you experts ?
If i can provide any logs, i could also debug Webtest with Eclipse if it
helps.
Cheers,
Thomas
01 [expectDialog] INFO (com.canoo.webtest.steps.Step) - >>>> Start
Step: expectDialog "PM_MES_CST_2: expect message alert" (25/33)
02 [clickButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickButton "Go to the main menu click PF3" (26/33)
03 [clickButton] INFO
(com.canoo.webtest.steps.request.AbstractTargetAction) - ->gotoTarget by
clickButton with name: PF3
04 [clickButton] INFO (com.canoo.webtest.steps.request.ClickButton) -
-> findTarget(by button): name=PF3 value=
05 [clickButton] DEBUG (com.canoo.webtest.engine.Context) - Window
closed (contains: about:blank)
06 [clickButton] DEBUG (com.canoo.webtest.engine.Context) - Window
closed (contains: about:blank)
07 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
08 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed with javascript, it will NOT become current response
09 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
10 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed with javascript, it will NOT become current response
11 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
12 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed with javascript, it will NOT become current response
13 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
14 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed with javascript, it will NOT become current response
15 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
window changed to
http://localhost:8080/patutorial/vsdemo/fs/Listactivities.srv
16 [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of
current window changed, it will become current response
17 [clickButton] INFO (com.canoo.webtest.engine.Context) - Current form
set to none
18 [clickButton] INFO (com.canoo.webtest.engine.Context) - Current
response now: http://localhost:8080/patutorial/vsdemo/fs/Listactivities.srv
19 [clickButton] DEBUG (com.canoo.webtest.engine.Context) - Previous
response: http://localhost:8080/patutorial/vsdemo/fs/Mainmenu.srv
20 [verifyProperty] INFO (com.canoo.webtest.steps.Step) - >>>> Start
Step: verifyProperty "PM_MES_CST_2, PM_MES_CST_3: check
message='ds\'ds<ds"ds\\'" (27/33)
21 [verifyNoDialogs] INFO (com.canoo.webtest.steps.Step) - >>>> Start
Step: verifyNoDialogs "verify it passes PM_MES_CST_2, PM_MES_CST_3" (28/33)
22 [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start
Step: setSelectField "Set select option customer" (29/33)
23 [setSelectField] INFO (com.canoo.webtest.engine.Context) - Current
form set to(action=/patutorial/vsdemo/fs/Mainmenu.srv)
24 [setSelectField] INFO
(com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable
fields, considering only the first one
25 [verifyNoDialogs] INFO (com.canoo.webtest.steps.Step) - >>>> Start
Step: verifyNoDialogs "checking before customer menu" (30/33)
26 [clickButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickButton "Go to the customer menu" (31/33)
27 [clickButton] INFO
(com.canoo.webtest.steps.request.AbstractTargetAction) - ->gotoTarget by
clickButton with name: ENTER
28 [clickButton] INFO (com.canoo.webtest.steps.request.ClickButton) -
-> findTarget(by button): name=ENTER value=
29 [clickButton] INFO (com.canoo.webtest.steps.Step) - Running with:
Canoo Webtest: R_1217.
30 [clickButton] INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this
31 class: com.canoo.webtest.engine.StepFailedException
32 [clickButton] INFO (com.canoo.webtest.steps.Step) - Message was:
Step[clickButton "Go to the customer menu" (31/33)]: Script error
loading page executing webte
33 st at: clickButton Wrapped
com.canoo.webtest.engine.StepFailedException: Expected dialogs but none
found!, Step: ExpectDialog at D:\WebTest\webtests\modules\lis
34 tactivities\verifieMessageConstanteEchappement.xml:2: with
(saveProperty="messageAlert", description="PM_MES_CST_2: expect message
alert", dialogType="alert",
35 stepType="expectDialog") (Embedded script in
http://localhost:8080/patutorial/vsdemo/fs/Listactivities.srv#6)
36 [clickButton] Source code:
37 [clickButton] function () {
38 [clickButton] [native code, arity=0]
39 [clickButton] }
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest