Last active
February 25, 2020 07:09
-
-
Save francislainy/6c7c1b37e27da82d4941f7202a924e77 to your computer and use it in GitHub Desktop.
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
package selenium_demo.test_rail; | |
import java.util.Properties; | |
import static selenium_demo.utils.Util.getPassProperties; | |
import static selenium_demo.utils.Util.getProperties; | |
public class TestRailAccount { | |
public static APIClient testRailApiClient() { | |
Properties prop = getProperties(); | |
Properties passProp = getPassProperties(); | |
String baseUrl = prop.getProperty("baseUrl"); | |
String usernameTestRail = passProp.getProperty("usernameTestRail"); | |
String passwordTestRail = passProp.getProperty("passwordTestRail"); | |
APIClient client = new APIClient(baseUrl); | |
client.setUser(usernameTestRail); | |
client.setPassword(passwordTestRail); | |
return client; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment