Jenkins is most widely used tool for Continuous Integration and Continuous Development purpose. You can schedule your build through Jenkins and trigger can be your deployment. It will automatically schedule the build and even can send the feedback using mail SMTP servers. It is very easy to use any mail server with Jenkins, So that if any of the build fails, it will trig an email notification to target audience. Let’s see how you can configure Jenkins on your windows machine. Step 1: Access the URL Jenkins site and locate the Generic Java Package situated at the bottom. Step 2: Once you finish the download of war file, open the Command prompt and enter java -jar <location of downloaded war file> and hit the enter button. Wait until you get below mentioned success message that Jenkins server is up and running. Step 3: Once you get above stated success message, in the browser hit URL localhost:8080 because Jenkins ...
When we are using / drafting any framework, it is very important that we should keep configurable things/properties separate from static things. To elaborate more, consider an example of test data. Test data is non static part of any framework, because it will change for each of regression/ test cycle. So we end up replacing test data after each test cycle. Another example could be web elements. If any change is happening to UI, it ultimately affects your web elements. So the best practice says keep your static things apart from configurable one. Best part to implement this is to have config.properties file. Its basically a text file which will have values in the format of key and its value. For Example: key1 = value1 key2=value2 We will use Properties class which implements map interface. To create config file, right click on your project > Select file option > save the file with name “ config.properties “. Create a class which will read key from your config f...
While launching Internet Explorer using selenium is a tedious job since it involves much of internal security and restrictions. As we have seen earlier on how to launch the Chrome browser by simply setting System property and using simple method ChromeDriver(), Internet Explorer do have such kind of method by which we can easily launch the browser. Below code snippet can launch the Internet Explore browser. One can download IE driver from IE Server Driver . System.setProperty(“webdriver.ie.driver”, “locale path for IE Server driver\\IEDriverServer.exe”); WebDriver driver = new InternetExplorerDriver(); Code Explanation: First line of code will set the System property as webdriver.ie.driver which will point to the local path where we have downloaded IEdriver.exe. Second line of above code snippet will take use of this property and launch the IE browser, Since we know that selenium alone can not launch the browser. Once the browser successfully launched, one can se...
Comments
Post a Comment