Forum Discussion

Sjakie's avatar
Sjakie
Occasional Contributor
11 years ago

Making a function global

For my tests I have created several RESTMockServices. Also there are several MockActions. Everything runs in SoapUI Pro v5.1.2. Now I would like to write my incoming message to a seperate logfile. For this I made a function that determines the current date and time and writes this with a given String to the file.

My problem is that I have to include my function in every MockAction Script. Is it possible to put my function somewhere so all my MockAction Scripts can access it? Are there alternatives in SoapUI Pro?

Thanks in advance.

2 Replies

  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    There is a great post located here that I think covers what you are attempting to accomplish.
  • Sjakie's avatar
    Sjakie
    Occasional Contributor
    Yes, that is exactly what I need.

    And to quote Sandeepss:
    You are real Dude man..


    Thanks!