This file contains hidden or 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
package com.dumiduh.elements; | |
import com.dumiduh.models.TestData; | |
import com.dumiduh.utils.JSONUtil; | |
import org.testng.annotations.Factory; | |
public class DropDownTest { | |
static TestData data = JSONUtil.readAGivenTestDataItem("dropdownendtoend"); | |
@Factory |
This file contains hidden or 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
package com.dumiduh; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.SearchContext; | |
import org.openqa.selenium.WebElement; | |
import java.util.List; | |
public class CustomBy extends By { | |
private String searchTerm; |
This file contains hidden or 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
package com.dumiduh; | |
import com.dumiduh.constants.Constants; | |
import io.github.bonigarcia.wdm.WebDriverManager; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.testng.Assert; | |
import org.testng.annotations.AfterClass; | |
import org.testng.annotations.BeforeClass; | |
import org.testng.annotations.Test; |
This file contains hidden or 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
plugins: [{ | |
package: 'jasmine2-protractor-utils', | |
disableHTMLReport: true, | |
disableScreenshot: false, | |
screenshotPath:'C:\\WebApprovalModuleTestReports\\screenshots', | |
testBrowser: 'chrome', | |
htmlReportDir: './', | |
screenshotOnExpectFailure:false, | |
screenshotOnSpecFailure:true, | |
clearFoldersBeforeTest: true |
This file contains hidden or 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
onComplete: function() { | |
var browserName, browserVersion; | |
var capsPromise = browser.getCapabilities(); | |
capsPromise.then(function (caps) { | |
browserName = caps.get('browserName'); | |
browserVersion = caps.get('version'); | |
platform = caps.get('platform'); | |
var reportName= "Protractor Test Report "+Date.now(); |
This file contains hidden or 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
onPrepare: function() { | |
browser.manage().window().maximize(); | |
var jasmineReporters = require('jasmine-reporters'); | |
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({ | |
consolidateAll: true, | |
savePath: './testresults/', | |
filePrefix: 'xmlresults' | |
})); | |
} |
This file contains hidden or 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
docker container run -e EXEC_TYPE=TEST containertestngsuite:1.0.0 |
This file contains hidden or 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
package org.testngrunner; | |
import com.beust.jcommander.internal.Lists; | |
import org.testng.TestNG; | |
import java.util.List; | |
public class App | |
{ | |
public static void main( String[] args ) |
This file contains hidden or 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
FROM openjdk:8-jre-slim | |
# Add the jar with all the dependencies | |
ADD target/container-testngrunner.jar /usr/share/dumiduh/container-testngrunner.jar | |
ADD testng.xml /usr/share/dumiduh/testng.xml | |
WORKDIR /usr/share/dumiduh/ | |
ENTRYPOINT ["/usr/bin/java", "-cp", "container-testngrunner.jar","org.testngrunner.App"] |
This file contains hidden or 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
docker service ls | |
docker service scale stack1_py=5 | |
docker exec <CONTAINER ID> tail -f /code/info.log |
NewerOlder