[ptt-users] TM 5.1 RC 2: testgen4web output "is not well formed"?
Frank Cohen
fcohen at pushtotest.com
Mon Feb 25 10:53:38 PST 2008
Hi Lars:
This is indeed a user interface design problem. I opened a new
enhancement ticket at http://bugs.pushtotest.com/ticket/211. We will
change the function of the open icon to know the difference of file
type and act accordingly.
Thanks.
-Frank
On Feb 21, 2008, at 1:13 PM, Lars Huttar wrote:
> Hello,
> Boning up for next week's seminar, I went back to the responder at
> http://examples.pushtotest.com/responder/htmlresponder
> and recorded a test using TestGen4Web. Then I had TG4W save the
> test as a file, example-tg4w.xml.
> Then I started TM 5.1 (RC 2) and clicked the Open tool button,
> navigated to example-tg4w.xml, and opened it.
> The unexpected behavior: I got a message box saying the file ...
> \example-tg4w.xml "is not well formed."
> After clicking OK, I got another message box asking if I wanted to
> open the file for editing.
>
> Well, I thought the tg4w output was supposed to be (well-formed)
> XML, so I opened it in another XML editor (Oxygen) and ran the well-
> formedness check. Oxygen says it's well-formed. What gives?
>
> Maybe TM means that it was expecting to open some other type of XML
> document, such as a test scenario, and that example-tg4w.xml is not
> a *valid* (as opposed to well-formed) instance of that document type?
> That's the only explanation I can think of off the top of my head.
> If so, it would be nice if
> (a) the "Open" button had some indication that it meant "Open Test
> Scenario", either on the button label or on a tooltip; and
> (b) the error message would say "is not a valid test scenario"
> instead of "is not well formed".
>
> Or maybe it means something else entirely?
>
> I'll attach the example-tg4w.xml file here.
> By the way I'm using Firefox 2.0.0.12.
>
> Regards,
> Lars
>
>
> <?xml version='1.0' encoding='UTF-8'?>
> <tg4w version="0.50.2-ptt">
> <datasets>
> </datasets>
> <actions>
> <action type="goto" refresh="." window="." step="0">
> <xpath><![CDATA[window.location.href]]></xpath>
> <value><![CDATA[http://examples.pushtotest.com/
> responder/htmlresponder]]></value>
> </action>
> <action type="verify-title" window="." step="1">
> <xpath><![CDATA[*]]></xpath>
> <value><![CDATA[Responder - the best in Web Service
> testing from http://www.PushToTest.com]]></value>
> </action>
> <action type="click" refresh="." window="." step="2">
> <xpath><![CDATA[*/TABLE[1]/TBODY[1]/TR[1]/TD[2]/A
> [@CDATA="file2.html"]]]></xpath>
> <value><![CDATA[]]></value>
> </action>
> <action type="verify-title" window="." step="3">
> <xpath><![CDATA[*]]></xpath>
> <value><![CDATA[Responder - the best in Web Service
> testing from http://www.PushToTest.com]]></value>
> </action>
> <action type="fill" window="." step="4">
> <xpath><![CDATA[*/FORM[1]/*/INPUT[@TYPE="text" and
> @NAME="firstname"]]]></xpath>
> <value><![CDATA[Lars]]></value>
> </action>
> <action type="fill" window="." step="5">
> <xpath><![CDATA[*/FORM[1]/*/INPUT[@TYPE="text" and
> @NAME="lastname"]]]></xpath>
> <value><![CDATA[Huttar]]></value>
> </action>
> <action type="fill" window="." step="6">
> <xpath><![CDATA[*/FORM[1]/*/INPUT[@TYPE="text" and
> @NAME="phone"]]]></xpath>
> <value><![CDATA[9834p3]]></value>
> </action>
> <action type="fill" window="." step="7">
> <xpath><![CDATA[*/FORM[1]/*/INPUT[@TYPE="text" and
> @NAME="account"]]]></xpath>
> <value><![CDATA[34234th]]></value>
> </action>
> <action type="fill" window="." step="8">
> <xpath><![CDATA[*/FORM[1]/*/INPUT[@TYPE="text" and
> @NAME="amount"]]]></xpath>
> <value><![CDATA[123]]></value>
> </action>
> <action type="click" refresh="." window="." step="9">
> <xpath><![CDATA[*/FORM[1]/*/INPUT[@NAME="Transfer" and
> @VALUE="Transfer Funds"]]]></xpath>
> <value><![CDATA[Transfer]]></value>
> </action>
> <action type="verify-title" window="." step="10">
> <xpath><![CDATA[*]]></xpath>
> <value><![CDATA[Responder - the best in Web Service
> testing from http://www.PushToTest.com]]></value>
> </action>
> </actions>
> </tg4w>_______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
--
Frank Cohen, http://www.PushToTest.com, phone 408 871 0122
PushToTest, the open-source test automation company
More information about the Users
mailing list