Search in sources :

Example 6 with HpAlmConnector

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);
}
Also used : JSONObject(org.json.JSONObject) HpAlmConnector(com.seleniumtests.connectors.tms.hpalm.HpAlmConnector) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 7 with HpAlmConnector

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));
}
Also used : JSONObject(org.json.JSONObject) HpAlmConnector(com.seleniumtests.connectors.tms.hpalm.HpAlmConnector) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 8 with HpAlmConnector

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);
}
Also used : JSONObject(org.json.JSONObject) HpAlmConnector(com.seleniumtests.connectors.tms.hpalm.HpAlmConnector) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 9 with HpAlmConnector

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);
}
Also used : JSONObject(org.json.JSONObject) HpAlmConnector(com.seleniumtests.connectors.tms.hpalm.HpAlmConnector) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Aggregations

GenericTest (com.seleniumtests.GenericTest)9 HpAlmConnector (com.seleniumtests.connectors.tms.hpalm.HpAlmConnector)9 JSONObject (org.json.JSONObject)9 Test (org.testng.annotations.Test)9 TestManager (com.seleniumtests.connectors.tms.TestManager)1