package com.equalize.xpi.af.modules.tester;

import java.util.Hashtable;

import com.equalize.xpi.tester.util.ParameterHelper;

public class ModuleTesterMain {

	public static void main(String[] args) {
		try {
			// Default files
			String inputFile = "C:\\Users\\ksap086\\Desktop\\Excel2XML_Scenario1.xlsx";
			String paramFile = "C:\\Users\\ksap086\\Desktop\\Excel2XML_Scenario1_param.txt";
			String outFile = "C:\\Users\\ksap086\\Desktop\\output.txt";
			
			// Module to be tested
			String module = "com.equalize.xpi.af.modules.FormatConversionBean";

			// Get module parameters and initialize tester
			Hashtable<String, String> contextData = ParameterHelper.newInstance(paramFile).getParams();
			ModuleTester tester = ModuleTester.newInstance(module, inputFile, contextData);

			// Add dynamic configuration
			tester.addDynCfg("http://sap.com/xi/XI/System/File", "FileName", "FileA.txt");	

			// Execute processing
			tester.getDynCfg("before");
			tester.execute(outFile);
			tester.getDynCfg("after");
			
		} catch (Exception e) {
			e.printStackTrace();
		}	
	}
}

@@ -214,64 +214,119 @@
 %09// 
-Default files%0A%09%09%09String inputFile = %22
+Sample arguments:-%0A%09%09%09// arg0 - com.equalize.xpi.af.modules.FormatConversionBean%0A%09%09%09// arg1 - 
 C:%5C
-%5C
 Users%5C
-%5C
 ksap086%5C
 %5CDes
@@ -317,33 +317,32 @@
 ers%5Cksap086%5C
-%5C
 Desktop%5C
 %5CExcel2XML_S
@@ -333,78 +333,48 @@
 top%5C
-%5CExcel2XML_Scenario1.xlsx%22;%0A%09%09%09String paramFile = %22
+input.txt%0A%09%09%09// arg2 - 
 C:%5C
-%5C
 Users%5C
-%5C
 ksap086%5C
 %5CDes
@@ -369,25 +369,24 @@
 ksap086%5C
-%5C
 Desktop%5C
 %5CExcel2X
@@ -381,29 +381,8 @@
 top%5C
-%5CExcel2XML_Scenario1_
 para
@@ -390,51 +390,39 @@
 .txt
-%22;
 %0A%09%09%09
-String outFile = %22
+// arg3 - 
 C:%5C
-%5C
 Users%5C
-%5C
 ksap086%5C
 %5CDes
@@ -417,25 +417,24 @@
 ksap086%5C
-%5C
 Desktop%5C
 %5Coutput.
@@ -425,17 +425,16 @@
 Desktop%5C
-%5C
 output.t
@@ -439,112 +439,272 @@
 .txt
-%22;
 %0A%09%09%09
-%0A%09%09%09// Module to be tested%0A%09%09%09String module = %22com.equalize.xpi.af.modules.FormatConversionBean%22;%0A
+if(args.length %3C 4)%0A%09%09%09%09throw new RuntimeException(%22Please enter arguments in Run Configuration%22);%0A%0A%09%09%09// Module to be tested%0A%09%09%09String module = args%5B0%5D;%0A%09%09%09// Files%0A%09%09%09String inputFile = args%5B1%5D;%0A%09%09%09String paramFile = args%5B2%5D;%0A%09%09%09String outFile = args%5B3%5D;%0A%09%09%09
 %0A%09%09%09
@@ -960,24 +960,26 @@
 guration%0A%09%09%09
+//
 tester.addDy

Change standalone module tester to use arguments as input