/**
* Setup TestNG method to create Rapture login object and objects.
*
* @param RaptureURL
* Passed in from <env>_testng.xml suite file
* @param RaptureUser
* Passed in from <env>_testng.xml suite file
* @param RapturePassword
* Passed in from <env>_testng.xml suite file
* @return none
*/
@BeforeMethod
@BeforeClass(groups = { "mongo" })
@Parameters({ "RaptureURL", "RaptureUser", "RapturePassword" })
public void setUp(@Optional("http://localhost:8665/rapture") String url, @Optional("rapture") String username, @Optional("rapture") String password) {
// If running from eclipse set env var -Penv=docker or use the following
// url variable settings:
// url="http://192.168.99.101:8665/rapture"; //docker
// url="http://localhost:8665/rapture";
System.out.println("Using url " + url);
raptureLogin = new HttpLoginApi(url, new SimpleCredentialsProvider(username, password));
raptureLogin.login();
series = new HttpSeriesApi(raptureLogin);
document = new HttpDocApi(raptureLogin);
script = new HttpScriptApi(raptureLogin);
event = new HttpEventApi(raptureLogin);
fountain = new HttpIdGenApi(raptureLogin);
blobApi = new HttpBlobApi(raptureLogin);
Kernel.initBootstrap();
context = ContextFactory.getKernelUser();
}
MongoTests.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:Rapture
作者:
评论列表
文章目录