コード例 #1
0
def create_testsuite_with_name(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    post_payload = {"productId": ProductModel().get_seed_resid()[0],
                    "name": name,
                    "description": "Sweet Relief",
                    "useLatestVersions": "true"
                   }
    testsuiteModel.create(post_payload)
def create_testsuite_with_name(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    post_payload = {
        "productId": ProductModel().get_seed_resid()[0],
        "name": name,
        "description": "Sweet Relief",
        "useLatestVersions": "true"
    }
    testsuiteModel.create(post_payload)
コード例 #3
0
def add_testcases_to_testsuite(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    for tc in step.hashes:
        testsuiteModel.add_testcase(name, tc["name"])
コード例 #4
0
def delete_testsuite_with_name_foo(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.delete(name)
コード例 #5
0
def check_testsuite_foo_existence(step, stored, name, existence):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.verify_existence_on_root(name,
                                            existence = existence)
コード例 #6
0
def activate_testsuite_with_name(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.activate(name)
def add_testcases_to_testsuite(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    for tc in step.hashes:
        testsuiteModel.add_testcase(name, tc["name"])
def delete_testsuite_with_name_foo(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.delete(name)
def check_testsuite_foo_existence(step, stored, name, existence):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.verify_existence_on_root(name, existence=existence)
def activate_testsuite_with_name(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.activate(name)