Creating Your Own DPL
Creating your own DPL requires JAVAJava programming skills and a familiarity with the DPL interface definition. It involves a two-step process: First,first, you need to implement the DPL main class; second, you need to define a new DPL type for Appvance IQ.
The DPL JAVAJava class implements the standard DPL methods including getNextDatagetNextData, , getDataByIndex ,getDataByIndex, and more. It needs to implement the com.Appvance.tool.dpl.DataProduction interface. Here is an example:
import com.Appvance.tool.dpl.DataProduction; public class SimpleDPL implementsDataProduction{DataProduction { public SimpleDPL() { } public void setup(String data) { System.out.println("This is a setup using data "+data); } public Object getData() { return null; } public Object getRandomData() { return "RANDOM DATA"; } public Object getNextData() { return "Simple data: getNextData"; } public Object getDataByIndex(int index) { return "Simple data: get data by index "+index; } public void tearDown() { } }
Once you define and compile a custom DPL packaged into a .jar file, you should use the <DataSources> in a TScenario document to identify your new DPL type.
Last updated: February 17, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai