コード例 #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 create_testsuites(step):
    testsuiteModel = TestsuiteModel()

    for item in step.hashes:
        # must do this or it will freak out the lettuce reporting, because
        # we delete items from this before submitting.
        testsuite = item.copy()

        # get the product id from the passed product name
        product_id = ProductModel().get_resid(testsuite["product name"])[0]

        testsuite["productId"] = product_id

        if testsuite.has_key('product name'):
            del testsuite['product name']

        testsuiteModel.create(testsuite)
def create_testsuites(step):
    testsuiteModel = TestsuiteModel()

    for item in step.hashes:
        # must do this or it will freak out the lettuce reporting, because
        # we delete items from this before submitting.
        testsuite = item.copy()

        # get the product id from the passed product name
        product_id = ProductModel().get_resid(testsuite["product name"])[0]

        testsuite["productId"] = product_id

        if testsuite.has_key('product name'):
            del testsuite['product name']

        testsuiteModel.create(testsuite)
コード例 #5
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"])
コード例 #6
0
def delete_testsuite_with_name_foo(step, stored, name):
    testsuiteModel = TestsuiteModel()
    name = testsuiteModel.get_stored_or_store_name(stored, name)

    testsuiteModel.delete(name)
コード例 #7
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)
コード例 #8
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)