Forum Discussion

Michael_Smith's avatar
Michael_Smith
Occasional Contributor
17 years ago

Help exporting data from a Testcase step.

Hi all.

Is there anyway of exporting the contents generated within a testcase step?

I am currently having to go through testcase step and taking a screen print and pasting it in a word doccument to allow for another colleage to use for reconcilliation.

I've attached a screen print of what I mean

There MUST be an easier way!?!

19 Replies

  • Hi!

    almost;

    testRunner.testCase.testSteps["name of run testcase step"].savePropertiesToFile( ..filename.. )

    Please consider getting a Pro license if you don't already have one :-)

    regards!

    /Ole
    eviware.com
  • Michael_Smith's avatar
    Michael_Smith
    Occasional Contributor
    Hiya.

    Good news / Bad news

    Good news! I got the script to work and test case data was being sent out.

    Bad news - I couldnt get the test to complete it's next step.

    I've attached the issue log.

    I went back to 5.0 and ran the tests without the groovy scripts and it worked fine.

    Help?
  • Michael_Smith's avatar
    Michael_Smith
    Occasional Contributor
    I'm not sure the attachment worked - Here is the text

    Step 1 [Setup test variables] OK: took 0 ms
    Step 2 [Bring in test case variables] OK: took 0 ms
    -> Performed transfer [1]
    -> Performed transfer [2]
    -> Performed transfer [3]
    -> Performed transfer [4]
    -> Performed transfer [5]
    -> Performed transfer [6]
    -> Performed transfer [7]
    -> Performed transfer [8]
    -> Performed transfer [9]
    -> Performed transfer [10]
    -> Performed transfer [11]
    -> Performed transfer [12]
    -> Performed transfer [13]
    -> Performed transfer [14]
    Step 3 [Create unique batch number] OK: took 2 ms
    Step 4 [Create unique invoice number if requested] OK: took 1 ms
    Step 5 [CreateRegistrationFees] FAILED: took 568 ms
    -> error: does not close tag
    .
    -> does not close tag
    .
    Step 6 [Output results] OK: took 0 ms
    -> Error performing transfer [1] - error: does not close tag
    .
    -> Error performing transfer [2] - error: does not close tag
    .
    -> Performed transfer [3]
    Step 7 [Process the batch (yes / no)] OK: took 1 ms
    Step 8 [Process batch] OK: took 185 ms
    Step 9 [Wait for JMS] OK: took 3274 ms
    Step 10 [Check for expected result] FAILED: took 22 ms

    As I said - the same script works fine in Soapui 2.5
    Build daily-2008-11-21-[3], Build Date 2008/11/21 15:59
    (not 5.0!- not idea where I got that from)

    And it doesn't work in 2.5.1
    Build daily-2009-02-26-[4], Build Date 2009/02/26 02:21

    i
  • Hi!

    hmm.. could you please check that the HTTP Version in the HTTP Preferences tab has not been set to 0.9? (in which case you should change it to 1.0 or 1.1)..

    let me know if that helps!

    regards,

    /Ole
    eviware.com
  • Hi!

    hmm.. can you attach the contents of the http log after running this testcase? (clear it first!)..

    regards,

    /Ole
    eviware.com
  • Thanks,

    the server seems to be returning an HTML error page here, with the error text being

    The server encountered an internal error () that prevented it from fulfilling this request

    Can you check the server logs to see what might be going on there?

    regards!

    /Ole
    eviware.com