Here is the way to do it
classname: is filename of java :Ex: AutomationFileSequence
arg: Any arguments if required to run the class needs to be mentioned here.
<target name="run_PostData" >
<java fork="false" failonerror="yes" classname="com.qa.automation.main.AutomationFileSequence" classpathref="classpath">
<arg line="${basedir}/Automation_PostData.properties"/>
<arg line="PostData"/>
</java>
</target>
classname: is filename of java :Ex: AutomationFileSequence
arg: Any arguments if required to run the class needs to be mentioned here.
<target name="run_PostData" >
<java fork="false" failonerror="yes" classname="com.qa.automation.main.AutomationFileSequence" classpathref="classpath">
<arg line="${basedir}/Automation_PostData.properties"/>
<arg line="PostData"/>
</java>
</target>
Thanks for sharing this information.It was very nice blog to learn about Selenium
ReplyDeleteThanks for sharing this information.It was very nice blog to learn about Selenium
ReplyDeleteThis Workday Studio Integration training helps you master complex integrations step by step. OnlineITGuru provides hands-on practice with real scenarios. Perfect for IT professionals looking to upskill.
ReplyDelete