This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
taskkill /IM geckodriver.exe /F | |
taskkill /IM IEDriverServer.exe /F | |
taskkill /IM chromedriver.exe /F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
parameters { | |
string(name: 'server', defaultValue: "C:\\HexawareTraining\\Cohort1\\JenkinsLabs\\apache-tomcat-") | |
string(name: 'emailTo', defaultValue: "[email protected]") | |
} | |
triggers { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
// Configure our HTTP server to respond with Hello World to all requests. | |
var server = http.createServer(function (request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.end("This is my Node JS app"); | |
}); | |
// Listen on port 8666, IP defaults to 127.0.0.1 | |
server.listen(8666); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provider "virtualbox" do |vb| | |
### Change network card to PCnet-FAST III | |
# For NAT adapter | |
vb.customize ["modifyvm", :id, "--nictype1", "Am79C973"] | |
# For host-only adapter | |
vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configSections> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> | |
</configSections> | |
<log4net debug="false"> | |
<appender name="LogFileAppender" type="log4net.Appender.FileAppender,log4net"> | |
<!-- Modify this value to define the location and name of log file --> | |
<param name="File" value="C:\Desktopt\TestLog.log"/> | |
<param name="AppendtoFile" value="true"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies: javax.xml | org.w3c.com | org.xml.sax | |
public static String[][] get(String file) { | |
String[][] data = null; | |
// 1. Prepare Xpath | |
XPathFactory xpf = XPathFactory.newInstance(); | |
XPath xPath = xpf.newXPath(); | |
try { | |
// 2. Create XML File |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies: javax.xml.xpath | org.w3c | org.xml | |
public static void setFramework(String file) { | |
// 1. Prepare Xpath | |
XPathFactory xpf = XPathFactory.newInstance(); | |
XPath xPath = xpf.newXPath(); | |
try { | |
// 2. Create XML File | |
InputSource inputSource = new InputSource(file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This class returns a WebDriver object using 3 overloaded .get() methods: | |
* 1. get() - default | |
* 2. get(String browserType) | |
* 3. get(String browserType, String webURL) | |
*/ | |
public class DriverFactory { | |
string rootFolder = "C:\\Selenium\\Software\\"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupId>info.cukes</groupId> | |
<artifactId>cucumber-java</artifactId> | |
<version>1.2.0</version> | |
</dependency> | |
<dependency> | |
<groupId>info.cukes</groupId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ADD PROJECT DEPENDENCIES --> | |
<dependencies> | |
<dependency> | |
<groupId>org.testng</groupId> | |
<artifactId>testng</artifactId> | |
<version>6.10</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> |
NewerOlder