use of com.seleniumtests.connectors.tms.hpalm.HpAlmConnector in project seleniumRobot by bhecquet.
the class TestHpAlmConnector method testInitWithoutUrlParameter.
@Test(groups = { "ut" }, expectedExceptions = ConfigurationException.class)
public void testInitWithoutUrlParameter() {
JSONObject connect = new JSONObject();
connect.put(HpAlmConnector.TMS_DOMAIN, "domain");
connect.put(HpAlmConnector.TMS_PROJECT, "project");
connect.put(HpAlmConnector.TMS_USER, "user");
connect.put(HpAlmConnector.TMS_PASSWORD, "password");
String config = "{'tmsType': 'hp', 'tmsRun': '3'}";
HpAlmConnector hp = new HpAlmConnector(new JSONObject(config));
hp.init(connect);
}
use of com.seleniumtests.connectors.tms.hpalm.HpAlmConnector in project seleniumRobot by bhecquet.
the class TestHpAlmConnector method checkErrorWhenNoRunId.
@Test(groups = { "ut" }, expectedExceptions = ConfigurationException.class)
public void checkErrorWhenNoRunId() {
String config = "{'tmsType': 'hp'}";
new HpAlmConnector(new JSONObject(config));
}
use of com.seleniumtests.connectors.tms.hpalm.HpAlmConnector in project seleniumRobot by bhecquet.
the class TestHpAlmConnector method testInitWithoutDomainParameter.
@Test(groups = { "ut" }, expectedExceptions = ConfigurationException.class)
public void testInitWithoutDomainParameter() {
JSONObject connect = new JSONObject();
connect.put(HpAlmConnector.TMS_SERVER_URL, "http://myServer");
connect.put(HpAlmConnector.TMS_PROJECT, "project");
connect.put(HpAlmConnector.TMS_USER, "user");
connect.put(HpAlmConnector.TMS_PASSWORD, "password");
String config = "{'tmsType': 'hp', 'tmsRun': '3'}";
HpAlmConnector hp = new HpAlmConnector(new JSONObject(config));
hp.init(connect);
}
use of com.seleniumtests.connectors.tms.hpalm.HpAlmConnector in project seleniumRobot by bhecquet.
the class TestHpAlmConnector method testInitWithoutPasswordParameter.
@Test(groups = { "ut" }, expectedExceptions = ConfigurationException.class)
public void testInitWithoutPasswordParameter() {
JSONObject connect = new JSONObject();
connect.put(HpAlmConnector.TMS_SERVER_URL, "http://myServer");
connect.put(HpAlmConnector.TMS_DOMAIN, "domain");
connect.put(HpAlmConnector.TMS_PROJECT, "project");
connect.put(HpAlmConnector.TMS_USER, "user");
String config = "{'tmsType': 'hp', 'tmsRun': '3'}";
HpAlmConnector hp = new HpAlmConnector(new JSONObject(config));
hp.init(connect);
}
Aggregations