one build file per project or vice versa. Worth mentioning that one build file can relate to one and only one project i.e. Build file is nothing but a collection of xml elements. The next step is to create the project’s build file. Note: Take a note to necessarily add “ant-junit4.jar” jar file that can be found within the library folder of the Ant’s software distribution. Thus, no other installation is required to use Apache Ant in collaboration with Junit and Selenium WebDriver to build, execute and report the test scripts. The user would be able to see the following screen for the successful installation.ĭownload the latest version of JUnit jar from “ ” and configure the project’s build path in eclipse and add the jar as an external library. The user can also verify for the successful Ant installation by typing in the “ant -version” command in the command prompt. Refer the following screenshot for the same.Įdit the Path variable to append the location of the bin folder i.e. I am assuming that the JDK is already set and installed, Thus moving forward with the Ant Setup.Ĭreate an environment variable for “ANT_HOME” and set the variable’s value to the location of Ant folder. Prior to setting up the environment for Ant, it is required to install and set JDK on to your system. Step 2: Extract folder and Set Environment VariablesĮxtract the zipped folder at any desired location onto the local file system. The first and the foremost step is to download the zipped folder of Apache Ant latest version from the repository. Let us demonstrate the entire setup process step by step.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |