6 messages in com.canoo.lists.webtestRE: [Webtest] FW: Iframes support in ...| From | Sent On | Attachments |
|---|---|---|
| Dierk Koenig | 24 Sep 2004 00:19 | |
| Marc Guillemot | 24 Sep 2004 00:27 | |
| Vimal Raj | 24 Sep 2004 10:46 | .war, .html, .html, 1 more |
| Vimal Raj | 24 Sep 2004 16:11 | |
| Marc Guillemot | 27 Sep 2004 01:23 | |
| Vimal Raj | 28 Sep 2004 09:39 |
| Subject: | RE: [Webtest] FW: Iframes support in webtest![]() |
|---|---|
| From: | Vimal Raj (vr...@convera.com) |
| Date: | 09/24/2004 04:11:18 PM |
| List: | com.canoo.lists.webtest |
Hi All,
Never mind. It was my mistake, I didn't close one of the <a> in my html file.
Now things are working as expected. Thank you all so much for your help.
- Vimal.
-----Original Message----- From: webt...@lists.canoo.com [mailto:webt...@lists.canoo.com]On Behalf Of Vimal Raj Sent: Friday, September 24, 2004 10:47 AM To: webt...@lists.canoo.com Subject: RE: [Webtest] FW: Iframes support in webtest
Hi Marc.
Thanks for your response. I have created a sample test iframe.war file for you
to exercise my problem to test Iframes.
In this example i have used 2 html files. IframeMain.html is the entry page
which includes a Iframe( name:ichild), second one is the iframe page
(child.html). It's fairly simple to understand by looking at the code sample.
Following are the files i used to test this on a jboss environment. I have also
attached 3 result pages to verify the behaviour of each step. By looking at
result file "Parent LINK1096047123669.html" you can tell that step <clicklink>
"goto Parent" doesn't take the user to the IframeMain.html page. The focus still
remains inside the iframe.
Your help is really appreciated and based on your feedback we have a make
decision to use webtest.
Thanks, Vimal.
IframeMain.html -------------- <html>
<title> Iframes test- Main Page </title>
<body>
<h1> parent frame </h1>
<form name="childform" id="childform" >
<IFrame id="ichild" name="ichild" src="child.html" scrolling="no"
frameborder="1"></IFrame>
</form>
</body>
</html>
child.html ------------- <html> <script> //Purpose to submit the parent form and go back to the main page function submitParentView(sFormName) { var elForm = parent.document.getElementById(sFormName); if (elForm) {
//submit the folderview request elForm.action = "IframeMain.html"; elForm.submit(); } } </script> <body> <h1> child Iframe </h1> <a href="javascript:submitParentView('childform')"> goto Parent </a> </body> </html>
iframestest.xml --------------- <project name="SimpleTest" basedir="." default="main"> <taskdef file="C:/canoo/457/webtestTaskdefs.properties"> <classpath> <fileset dir="C:/canoo/457/" includes="**/lib/*.jar"/> </classpath> </taskdef>
<target name="main"> <testSpec name="myTest"> <config host="vraj" port="8080" protocol="http" basepath="iframe1" /> <steps>
<invoke stepid="Get Iframe tets main page" url="IframeMain.html" save="IFrame main page"/> <verifytitle stepid="Iframes test- Main Page" text="Iframes test- Main Page" />
<followframe stepid="get into the child iframe" name="ichild" save="Inside ichild Frame"/> <verifytext stepid="we should see the child Iframe text" text="child Iframe" />
<clicklink stepid="CLICK goto Parent LINK" label="goto Parent" save="back to IFrame main page"/>
</steps> </testSpec> </target> </project>
-----Original Message----- From: webt...@lists.canoo.com [mailto:webt...@lists.canoo.com]On Behalf Of Marc Guillemot Sent: Friday, September 24, 2004 12:28 AM To: webt...@lists.canoo.com Subject: Re: [Webtest] FW: Iframes support in webtest
Hi,
Can you prepare a sample script and set of simple html pages to illustrate the
problem?
Marc.
Dierk Koenig wrote:
forwarded
-----Original Message----- *From:* Vimal Raj [mailto:vr...@convera.com] *Sent:* Donnerstag, 23. September 2004 21:21 *To:* dier...@canoo.com *Subject:* Iframes support in webtest
Hi Dierk,
Recently, I have started using canoo webtest to test my web application. I use Iframes in my pages so, i used <followframe> step to follow from parent frame (e.g. foo) to child Iframe (e.g. child). This works fine but fails if i use the same step to go back to the parent frame.
I can not continue with my test scripts without resolving this problem. Your help is very much appreciated. Thanks you. - vim -----Original Message----- *From: * Vimal Raj *Sent: * Thursday, September 23, 2004 11:31 AM *To: * 'dier...@canoo.com' *Cc: * Vimal Raj *Subject: * Subscription
Hi Dierk,
This morning i have subscribed to the WebTest. At the end of the subscribing process a message read that i will recieve an email with the subcription details to log in next time to post my questions but so far i haven't recieved any.
I would really appreciate if you could check this for me. Thanks, Vimal.
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest





.war, .html, .html, 1 more