Hello, Attached are some sample which demonstrates how I am using frames. These are just static html pages but shows what's the functionality. Starting page is index.html
In actual test case
- initially main menu in left frame is shown
- user clicks on search on left menu
- search is done and results are shown in right frame
- each name is a hyperlink. When clicked on name, the page is submitted to the
server. Based on the user attributes, a new dynamic menu is generated and
updated in left menu. Onload method in body tag is used which points to a
javascript function which actually again goes to server to get dynamic menu
something like
function loadleftcontrol(id, meaLic)
{
top.Control.frames[1].location="/apps/client.jsp?clientId=" + name;
}
Regards
Jaydeep.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, March 03, 2008 4:31 PM
To: [email protected]
Subject: WebTest digest, Vol 1 #2230 - 9 msgs
Send WebTest mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.canoo.com/mailman/listinfo/webtest
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of WebTest digest..."
Today's Topics:
1. Enable redirects in webtest (David Gran)
2. Re: Enable redirects in webtest (Paul King)
3. Re: <verifylinks> runs in timeout, but with <retry> I dont
get broken links (Marc Guillemot)
4. Re: Issue with AJAX page (Marc Guillemot)
5. Re: RE: After upload the file getting Current response
is not an HTML page but of type text/csv error (Marc Guillemot)
6. Re: datadriven (Marc Guillemot)
7. Re: Problem with frames (Marc Guillemot)
--__--__--
Message: 1
Date: Sun, 02 Mar 2008 20:41:09 +0100
From: David Gran <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Webtest] Enable redirects in webtest
Reply-To: [email protected]
Reply-To: David Gran <[EMAIL PROTECTED]>
Hi List,
i tried to solve the common problem with redirects in the
<clickLink>-Tag of webtest but i didn't find anything helpful.
So is there anybody how can say me how i can enable redirects when i'm
using webtest. I know it is handeld on the level of htmlunit, but i
didn't really find anything to enable redirects.
Kind regards
David
--
/**
* David Gran
*
* Synyx GmbH & Co. KG
* OpenSource Solutions
* Karlstr. 68
* 76137 Karlsruhe
*
* fax +49(0)721 66 48 877
* eMail [EMAIL PROTECTED]
* www http://www.synyx.de
* irc irc.synyx.de
*
* Sitz der Gesellschaft: Karlsruhe
* Registergericht: Mannheim
* Handelsregisternummer: HRA 4793
* USt-IdNr.: DE249264296
*
* Komplementärin: Elatech Verwaltungs GmbH
* Sitz der Gesellschaft: Karlsruhe
* Geschäftsführer: Markus Daniel
* Registergericht: Mannheim
* Handelsregisternummer: HRB 7250
*/
--__--__--
Message: 2
Date: Mon, 03 Mar 2008 07:41:35 +1000
From: Paul King <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] Enable redirects in webtest
Reply-To: [email protected]
Reply-To: Paul King <[EMAIL PROTECTED]>
By default they are enabled. (But do ignore any log messages
coming from HttpClient as redirects are handled by HtmlUnit
itself and disabled in HttpClient).
Paul.
David Gran wrote:
> Hi List,
>
> i tried to solve the common problem with redirects in the
> <clickLink>-Tag of webtest but i didn't find anything helpful.
>
> So is there anybody how can say me how i can enable redirects when i'm
> using webtest. I know it is handeld on the level of htmlunit, but i
> didn't really find anything to enable redirects.
>
> Kind regards
> David
>
--__--__--
Message: 3
Date: Mon, 03 Mar 2008 09:50:52 +0100
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] <verifylinks> runs in timeout, but with <retry> I dont
get broken links
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
Hi Willi,
if timeouts aren't errors in your case, then you should change the
configured timeout in <config timeout="..." .../>. The default value is
300 seconds.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Willi Kuhnis wrote:
> Hi,
>
> I test the links with <verifylinks>. Sometimes it runs very nice and it
> shows a list of all the broken links.
> But sometimes <verifylinks> runs in a "Connection timed out: connect".
>
> To prevent the timeout, I normally use <retry>. But in these case, I
> cannot use it, because then it dont show the broken links.
> It only says (of course): Failed - retried the nested steps n time(s)
> without success
>
> Any Idea, how I can prevent the timeout, but see the list of the broken
> links?
>
> Thanks a lot
> --
> Willi Kuhnis
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--__--__--
Message: 4
Date: Mon, 03 Mar 2008 09:54:16 +0100
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] Issue with AJAX page
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
the error message doesn't really help.
Possible causes are:
- you are not on the page you expect to be
- select is not yet here at the time WebTest wants to select it (if the
select creation is delayed)
- dirty html
- not yet supported js
Could you first investigate to know which case applies here?
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Rinkesh Bansal wrote:
>
>
> Hello,
>
>
>
> I am having one Select field (drop-down List box) on my AJAX page.
> Canoo Webtest is unable to read this control and throws below error.
> Also, I used Webtest recorder but couldn’t read this control using
> Webtest recorder also. Please help me if anyone have solution to this
> problem.
>
>
>
> [verifyText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> verifyText "Verify Reports Text" (12/13)
>
> [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> setSelectField (13/13)
>
> INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
>
> INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest
> "test1" (D:\canoo\build\test1\SimpleTest.xml:11: )
>
> INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to
> D:\canoo\build\test1\result\057_Test1\WebTestReport.xml
>
> INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully
> created.
>
>
>
> BUILD FAILED
>
> D:\canoo\build\test1\SimpleTest.xml:39: No suitable form found having
> field named "report", Step: SetSelectField at
> D:\canoo\build\test1\SimpleTest.xml:39: with (taskName="setSelectField")
>
>
>
> Total time: 37 seconds
>
>
>
> Thanks & Regards,
> Rinkesh Bansal
> Module Lead
> Mail: [EMAIL PROTECTED]
> <blocked::mailto:[EMAIL PROTECTED]>
> Office: 91 20 30236792
> Mobile: 09326176376
>
>
>
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please notify
> the sender and delete all copies of this message. Persistent Systems
> Ltd. does not accept any liability for virus infected mails.
>
--__--__--
Message: 5
Date: Mon, 03 Mar 2008 09:57:02 +0100
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] RE: After upload the file getting Current response
is not an HTML page but of type text/csv error
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
as message says, you've clicked a link (or done anything else to access
the page) that is not html but text/csv (ie something that may opened in
excel depending on your browser/os settings). To continue navigation you
have to do what you would do in a real browser: go back with
<previousResponse/> or invoke a new url.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Ravinder Kankanala wrote:
> Hi
>
>
>
> After upload the file I am getting this type of error.
>
>
>
> <error exception="com.canoo.webtest.engine.StepExecutionException"
>
> filename="D:\TAF\Canoo\orgWebTest.xml" line="133"
> message="Current response is not an HTML page but of type text/csv">
>
> <stacktrace><![CDATA[D:\TAF\Canoo\orgWebTest.xml:133:
> Current response is not an HTML page but of type text/csv, Step:
> SetFileField at D:\TAF\Canoo\orgWebTest.xml:133: with
> (taskName="setFileField")
>
> at
> com.canoo.webtest.engine.WebClientContext.getCurrentHtmlResponse(WebClientContext.java:206)
>
> at
> com.canoo.webtest.engine.Context.getCurrentHtmlResponse(Context.java:85)
>
> at
> com.canoo.webtest.util.FormUtil.searchAllFormsForSuitableOne(FormUtil.java:106)
>
> at
> com.canoo.webtest.util.FormUtil.findFormForField(FormUtil.java:94)
>
> at
> com.canoo.webtest.steps.form.SetFileField.findForm(SetFileField.java:65)
>
> at
> com.canoo.webtest.steps.form.AbstractSetFieldStep.doExecute(AbstractSetFieldStep.java:139)
>
> at com.canoo.webtest.steps.Step.execute(Step.java:101)
>
> 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.java:31)
>
> at com.canoo.webtest.steps.Step.execute(Step.java:101)
>
> at org.apache.tools.ant.Task.perform(Task.java:364)
>
> at
> com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)
>
> 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.Project.executeTarget(Project.java:1185)
>
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
>
> at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>
> at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> ]]></stacktrace>
>
> </error>
>
>
>
> Here previous response was html page now it’s type text/csv. How can I
> render from current response to previous.
>
>
>
> Thanks for any help…
>
>
>
> Thanks
>
> Reddy k
>
>
>
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please notify
> the sender and delete all copies of this message. Persistent Systems
> Ltd. does not accept any liability for virus infected mails.
>
--__--__--
Message: 6
Date: Mon, 03 Mar 2008 10:02:17 +0100
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] datadriven
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
Hi,
I guess that they are 2 problems here:
- can you check what is the value of ${Zipcode}? I fear that this will
be of the form 1234567.0. If this is the case, this is a problem of
dataDriven. Please open an issue for it.
- the js error messages shows a problem in HtmlUnit. Can you provide the
js code at line 2512 of
https://secure.idirect.net/n565/scripts/validation.js (and maybe
previous lines if this is needed to understand).
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
lavanya palaniswamy wrote:
> Hi,
>
>
>
> I am facing problem while importing numeric data from excel sheet with
> data driven.
>
> However the numbers when given directly as input to the script it works
> fine.
>
> for eg:
>
> <setInputField name="applicant.homeAddress.zipCode" value="1234567"/>
>
>
>
>
>
> But the numeric values are not printed in the application with the
> following script.
>
> <setInputField name="applicant.homeAddress.zipCode" value="${Zipcode}"/>
>
>
>
> With this script the following error occurs:
>
>
>
> [clickLink] WARN (com.gargoylesoftware.htmlunit.ScriptEngine) -
> warning: messag
>
> e=[RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
>
> [clickLink] Rhino runtime detected object
> [EMAIL PROTECTED]
>
> 52: NOT_FOUND of class org.mozilla.javascript.UniqueTag where it
> expected String
>
> , Number, Boolean or Scriptable instance. Please check your code for
> missing Con
>
> text.javaToJS() call.]
> sourceName=[https://secure.idirect.net/n565/scripts/valid
>
> ation.js] line=[2512] lineSource=[null] lineOffset=[0]
>
> [clickLink] RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
>
> [clickLink] Rhino runtime detected object
> [EMAIL PROTECTED]
>
> 52: NOT_FOUND of class org.mozilla.javascript.UniqueTag where it
> expected String
>
> , Number, Boolean or Scriptable instance. Please check your code for
> missing Con
>
> text.javaToJS() call.
>
> [clickLink] INFO
> (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine) -
>
> Caught script exception
>
> [clickLink] ======= EXCEPTION START ========
>
> [clickLink] EcmaError: lineNumber=[2513] column=[0] lineSource=[null]
> name=[Refe
>
> renceError]
> sourceName=[https://secure.idirect.net/n565/scripts/validation.js] m
>
> essage=[ReferenceError: "selectnode" is not defined.
> (https://secure.idirect.net
>
> /n565/scripts/validation.js#2513)]
>
> [clickLink] com.gargoylesoftware.htmlunit.ScriptException:
> ReferenceError: "sele
>
> ctnode" is not defined.
> (https://secure.idirect.net/n565/scripts/validation.js#2
>
> 513)
>
> [clickLink] at
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$Htm
>
> lUnitContextAction.run(JavaScriptEngine.java:512)
>
>
>
> Thanks in Advance
>
> Lavanya.
>
>
> ------------------------------------------------------------------------
> Bring your gang together - do your thing. Start your group.
> <http://in.rd.yahoo.com/tagline_groups_2/*http://in.promos.yahoo.com/groups>
--__--__--
Message: 7
Date: Mon, 03 Mar 2008 10:03:19 +0100
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] Problem with frames
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
Could you provide some information to allow to understand the cause of
the problem like a minimal test case.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Jaydeep Ayachit wrote:
> Hello,
>
>
>
> I am having problem with the frames when the contents gets dynamically
> generated.
>
>
>
> - I have a page which has two frames
>
> - The left frame is the menu frame while right frame is contents frame
>
> - Depending on the link clicked on right frame, the contents of the
> left frame changes (menu changes as per functionality selected by user)
>
> - Webtest is not able to detect the change (I left frame) and when I
> try to click on any of the links (from the new menu which is dynamically
> generated) webtest does not find the link.
>
>
>
> Is there any solution/workaround for this.
>
>
>
> Thanks in advance.
>
>
>
> Thanks
>
> Jaydeep.
>
>
>
>
>
>
>
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please notify
> the sender and delete all copies of this message. Persistent Systems
> Ltd. does not accept any liability for virus infected mails.
>
--__--__--
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
End of WebTest Digest
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.
frame_issue_webtest.rar
Description: Binary data

