Search in sources :

Example 1 with ITestCaseContainer

use of com.twinsoft.convertigo.beans.core.ITestCaseContainer in project convertigo by convertigo.

the class GetTestPlatform method createRequestableElement.

private Element createRequestableElement(Document document, RequestableObject requestable) {
    Element e_requestable = createDatabaseObjectElement(document, requestable);
    if (requestable instanceof IVariableContainer) {
        handleIVariableContainer(document, e_requestable, (IVariableContainer) requestable);
    }
    if (requestable instanceof ITestCaseContainer) {
        for (TestCase testcase : ((ITestCaseContainer) requestable).getTestCasesList()) {
            Element e_testcase = createDatabaseObjectElement(document, testcase);
            handleIVariableContainer(document, e_testcase, testcase);
            e_requestable.appendChild(e_testcase);
        }
    }
    return e_requestable;
}
Also used : ITestCaseContainer(com.twinsoft.convertigo.beans.core.ITestCaseContainer) TestCase(com.twinsoft.convertigo.beans.core.TestCase) Element(org.w3c.dom.Element) IVariableContainer(com.twinsoft.convertigo.beans.core.IVariableContainer)

Aggregations

ITestCaseContainer (com.twinsoft.convertigo.beans.core.ITestCaseContainer)1 IVariableContainer (com.twinsoft.convertigo.beans.core.IVariableContainer)1 TestCase (com.twinsoft.convertigo.beans.core.TestCase)1 Element (org.w3c.dom.Element)1