[Dev] DPL idea

Frank Cohen fcohen at pushtotest.com
Wed Apr 18 18:07:44 PDT 2007


Here's an idea for the Data Production Library (DPL) idea for the TM5  
project.

The DPL is implemented in com.pushtotest.tool.dpl in Java, but you  
could also write it in a JSR 223 scripting languages

DPL Has setUp, tearDown, getData, getNextData, getDataIndex methods

DPL is Extensible To Define Custom Methods

PushToTest 5 Will Ship With DPLs for RDBMS access, CSV File access,  
and XML file access

TestScenario.xml includes global and local argument passing parameters

<data>
   <dpl name="usersdb" type="rdbms">
     <argument name="query" value="select name from users"/>
   </dpl>

   <dpl name="bodschema" type="bod">
     <argument name="object" value="com.pushtotest.schemas.bods.oagis"/>
   </dpl>
</data>

<run name="doquery" testclass="com.examples.example"
         method="sqrt" langtype="java">
       <argument name="username" dpl="usersdb" value="getNextData"/>
       <argument name="bod1" dpl="bodschema" value="getDataIndex"
          index="messagesize"/>
       <argument name="bod1" dpl="bodschema" value="getDataIndex"
          index="3"/>
</run>

What do you think?

-Frank

--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA governance and test automation tool




More information about the Dev mailing list