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 ...
Selecting date in date picker widget, is exactly same as fetching values from web tables. Date picker is also a web table in kind. so the code explained earlier on on how to fetch values from web table will work here as well. Please find below code to select date in any date picker.
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...
Comments
Post a Comment