Forum Discussion

This reply has been moved.

1 Reply

Replies have been turned off for this discussion
  • sirood's avatar
    sirood
    Occasional Contributor

    Hi

    I have a readyAPI installation with soApUI Pro and serviceV Pro. In this constellation I am able to initiate a soapUI testcase from a serviceV mock script. like:

    ....

    def testSuite3 = project.testSuites["notifyIncident"]
    if (testSuite3) {
    log.info "Running notifyIncident..."
    def testCase3 = testSuite3.testCases["${requestContext.targetCase}"]
    if (testCase3) {
    def ctx33 = new com.eviware.soapui.support.types.StringToObjectMap()
    ctx33.put("delegatedAppId",requestContext.delegatedAppId)
    ctx33.put("transactionType","CREATE")
    ctx33.put("itsmId",requestContext.itsmId)
    ctx33.put("taskId",requestContext.taskId)
    ctx33.put("extId",requestContext.extId)
    ctx33.put("filename",requestContext.targetParameter1)
    ctx33.put("resCats",requestContext.targetParameter2)
    ctx33.put("useCase",requestContext.targetParameter3)

    //Run the test Suite and then rejoin the threads
    def th33 = Thread.start {
    testCase3.run( ctx33, true );
    //th33.join();
    }

     

    How can we accomplish this when the serviceV mock is running on a VirtServer instance ?

     

    regards, Simon