[ptt-users] TM 5.1 RC 2: transformer silently fails?

Frank Cohen fcohen at pushtotest.com
Fri Feb 22 06:40:08 PST 2008


Hi Lars:

Thank you for the message. We will look into the problems you noted  
immediately. You should hear back from William or Max in a day or two.

Thanks.

-Frank

On Feb 21, 2008, at 2:33 PM, Lars Huttar wrote:

> As reflected in my previous message, I've been trying to follow  
> along with the Google tech talk on PTT from last August.
> Just now I tried to do the magic of transforming a unit test into a  
> functional test. Here are the steps I tried:
>
> - had example-tg4w.xml open in an editor window in TM;
> - select Tools / Transform... (inferring that's what Frank did in  
> his presentation);
> - on the Transformer dialog, filled in the paths: ...\example- 
> tg4w.xml and ...\example-tg4w.py
>  and selected the radio buttons TG4W Test and Jython.
> (I also tried this with and without checking the Create a  
> functional TestScenario box.)
>
> When I click Transform, the Transformer dialog closes, but nothing  
> else seems to happen.
> The ...\example-tg4w.py file in particular does not appear.
> I get no output in Console Output, or in any of the other panes of  
> that window.
> No errors.
>
> Maybe there's something wrong with my example-tg4w.xml, but it ran  
> fine when I replayed it in TG4W in Firefox.
>
> Again the .xml file is attached.
>
> Note however, when I try this transform on the example that is  
> installed with TM,
> C:\Program Files\PushToTest_TestMaker\example_agents 
> \testgen4web_examples\pttfrozen1_PTT_Examples_UnitTest.testgen4web,  
> the transformer works: it created the file I requested (fntest1.py)  
> and opened it in a buffer.
>
> And, going back to example-tg4w.xml, if I have it open and I click  
> the "New Functional Test" button and specify example-tg4w.py in the  
> Save dialog, TM successfully creates the functional test as  
> requested, and opens a controller pane to run it. (Oops, I later  
> realized that this should not have been named *.py as it's an XML  
> document.)
> On the other hand, it does not open example-tg4w.py in a buffer;  
> neither immediately, nor even when I click the Open toolbutton and  
> navigate to the file. And again, no errors. The only way I can load  
> example-tg4w.py in a buffer is to drag and drop it into TM.
>
> I'm also seeing other UI problems with TM... but I should probably  
> put them in a separate bug report.
> Should I enter these in the tracker, or keep posting to this list?  
> At one time I requested a login for the tracker, but as far as I  
> can find or remember I didn't hear back about it.
>
> 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