Forum Discussion

Tortol's avatar
Tortol
New Contributor
10 years ago

Get assertion time taken

Hi everybody!

Is there a way to get the time taken of an assertion?
I'm proccesing the response from the tearDown script of the project.
My project structure, i assume is like anyone's project....

project
|_testSuite
|_testCase
|_testStep1
| |_assertion1
| |_assertion2
|_testStep2
|_assertion1
|_assertion2

What i'm looking for is to get the time that took each assertion of each testStep, sumarize them to get the time taken of the step, then sumarize the testStep's time taken and so on..

Do you have any clue on how to do that?
I'm new in the SoapUI world!.

Thanks in advance!
Tortol

2 Replies

  • Tortol's avatar
    Tortol
    New Contributor
    Sorry if i wasn't clear enought. I'm new at this and English is not my native language

    I double click my project, a project's window appear. I select the TestSuite tab and in the TearDown Script I start reading the results of the web service's response.
    I suppose that what I check in the teardown is done after the web services execution, isn't it?

    Well, there I start reading this..

    project.getTestSuiteList().each{tstSuite ->
    tstSuite.getTestCaseList().each{ tstCase ->
    tstCase.getTestStepList().each{ tstStep ->
    tstStep.getAssertionList().each{ tst ->
    //I need this time taken
    }
    }
    }
    }


    Iterating the tstStep.getAssertionList() I can get the Status and ErrorMessages, but not the time taken.

    I hope I could make myself understand, if not i'll try again

    Thanks for your time.

    Tortol.