[ptt-users] Re: PushToTest and DPL

Frank Cohen fcohen at pushtotest.com
Tue Feb 26 22:57:12 PST 2008


Hi Sachin:

Unfortunately the TestGen4Web runner does not currently have the  
ability to take DPL values. We are working on this. See http:// 
bugs.pushtotest.com/ticket/198. Do you have time for a brief phone  
call for me to ask you a few questions about this? I am available on  
Monday at 8 am California time.

-Frank





On Feb 26, 2008, at 10:38 PM, Sachin Dere wrote:

> Hi frank,
>    I had a look at the DPL examples and it didn’t answer my query.  
> Let me explain the scenario :
> I have a CSV file and a TestGen4Web Script which is the Test Script  
> I wanna run. What I wanna do is read the CSV file and load the data  
> in TestGen4Web Script(Test1) which will be then run by LoadTest XML  
> file as follows :
>
> A) TestGen4Web Script(Test1) :
>
> <action type="fill" window="." step="2">
>             <xpath><![CDATA[*/FORM[@NAME="login"]/*/INPUT 
> [@ID="username"]]]></xpath>
>             <value><![CDATA[maestrotest]]></value>
>         </action>
>         <action type="fill" window="." step="3">
>             <xpath><![CDATA[*/FORM[@NAME="login"]/*/INPUT 
> [@ID="password"]]]></xpath>
>             <value><![CDATA[password]]></value>
>         </action>
>         <action type="click" refresh=".,." window="." step="4">
>             <xpath><![CDATA[*/FORM[@NAME="login"]/*/INPUT 
> [@TYPE="button" and @VALUE="Login"]]]></xpath>
>             <value><![CDATA[null]]></value>
>         </action>
>
>
> B) LoadTest XML file
> <resources>
>     <testgen4web path="./scripts/Test1"/>
>   </resources>	
> <test>
>                  <!-- Add your <run> methods here -->
>                  <run name="MyTest" testclass="Test1"
>                     method="testGen4Web" langtype="testgen4web"/>
>               </test>
>
>
>
>
> C) CSV file :
> Username,Password
> richie7,x12345
> joecampbell,x12345
> dlm1007,x12345
>
> is this possible?
>
> Currently all the DPL examples directly call the CSV file from  
> Jython Script or Load XML file and do not use the TestGen4Web XML  
> file. Hence I cannot load the values from CSV file dynamically and  
> call them in TestGen4Web XML file. Can you show me an example of  
> how to do this?I simply need to avoid manually typing the data in  
> TestGen4Web XML file. IM looking for a regular expression or  
> anything to do that?
>
>
> Thanks,
>
>
>
>
>
>
>
>
>
>
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.1/1300 - Release Date:  
> 2/26/2008 7:50 PM
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.1/1300 - Release Date:  
> 2/26/2008 7:50 PM
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>



--
Frank Cohen, http://www.PushToTest.com, phone 408 871 0122
PushToTest, the open-source test automation company






More information about the Users mailing list