Skip to content

Commit

Permalink
changed public -> protected
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecupa committed Oct 21, 2023
1 parent 216e8fd commit 741a89b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Tests/OpenviduTests/src/test/java/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,20 @@
public class Module{

/**
* public method.
* protected method.
*
* @author Andrea Acuña
* Description: set up two webDrivers (One in Chrome. One in Firefox) with headless mode
* Parameters: None
* Return: List with 2 browsers configurated. In the first position is Chrome and in the second position is Firefox
*/
public List<WebDriver> setUpTwoBrowsers(){
protected List<WebDriver> setUpTwoBrowsers(){

WebDriver driverChrome;
WebDriver driverFirefox;

List<WebDriver> browsers = new ArrayList<WebDriver>();

//WebDriverManager.chromedriver().setup();
WebDriverManager.chromedriver().clearDriverCache().setup();

ChromeOptions options = new ChromeOptions();
Expand All @@ -43,7 +42,6 @@ public List<WebDriver> setUpTwoBrowsers(){
driverChrome = new ChromeDriver(options);
browsers.add(driverChrome);

//WebDriverManager.firefoxdriver().setup();
WebDriverManager.firefoxdriver().clearDriverCache().setup();

FirefoxOptions optionsF = new FirefoxOptions();
Expand All @@ -57,15 +55,15 @@ public List<WebDriver> setUpTwoBrowsers(){
}

/**
* public method.
* protected method.
*
* @author Andrea Acuña
* Description: close both drivers passed by parameter
* Parameters: driverChrome: driver of chrome
* driverFirefox: driver of firefox
* Return: None
*/
public void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) {
protected void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) {
if (driverChrome != null){
driverChrome.quit();
}
Expand All @@ -75,7 +73,7 @@ public void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) {
}

/**
* public static method.
* protected static method.
*
* @author Andrea Acuña
* Description: open the excel file and read the value specified
Expand All @@ -84,7 +82,7 @@ public void quitTwoBrowsers(WebDriver driverChrome, WebDriver driverFirefox) {
* ColValue: name of the col in the excel
* Return: Value of the intersection between testName (Row) and ColValue (Col)
*/
public static String readVariablesFromExcel(String filePath, String testName, String ColValue) {
protected static String readVariablesFromExcel(String filePath, String testName, String ColValue) {

try (FileInputStream fileInputStream = new FileInputStream(filePath);
Workbook workbook = WorkbookFactory.create(fileInputStream)) {
Expand Down

0 comments on commit 741a89b

Please sign in to comment.