Forum Discussion

kishore530's avatar
kishore530
Occasional Contributor
6 years ago

Can we pass assertions of soap test step to another step in different project in soapui

Hello Friends,

 

i have a requirement to pass the assertions of a soap test step to another soap test step in different project in soapui. can this be done using project properties ? Please help.

4 Replies

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    What do you mean by "pass the assertions" to another soap test? Do you need to access the results? Do you need to re-use the same assertions? 

    • kishore530's avatar
      kishore530
      Occasional Contributor

      hello msiadak, thanks for your promptness.


      Yes, we need to re-use dynamically the same assertions in another test step(which will be present in another project).

      dynamically here is - when we run the testStep1 in project1, the assertions available in testStep2 in project2 should run in testStep1(in project1)

  • nmrao's avatar
    nmrao
    Champion Level 3
    Not sure what type of assertions you are trying to use.

    If you can write some classes / methods with appropriate parameters, place them under scripts (library) and just call those methods with current step data as argument, which may be possible in just a single statement ( with script assertion).
  • Lucian's avatar
    Lucian
    Community Hero

    Hi,

     

    Is the 'Clone assertion' functionality not suitable for you?