Forum Discussion

Asubbiah's avatar
Asubbiah
Contributor
8 years ago
Solved

How can I find out if the teststep is JDBC Test step?

How can I find out if the test step is a JDBC test step?

 

If a test step is Rest Test Step, then we validate using --> if(teststep1 instanceof RestTestRequestStep)

In the same way, if the test step is JDBC test step, how can I validate the step?

 

  • Got the answer. thanks.

     

    instanceof JdbcRequestTestStep

2 Replies

  • Got the answer. thanks.

     

    instanceof JdbcRequestTestStep

    • nmrao's avatar
      nmrao
      Champion Level 3

      Just to make it clear including import statement:

       

      import com.eviware.soapui.impl.wsdl.teststeps.JdbcRequestTestStep
      
      //...other statements.... 
      // step is defined as test step
      
      if (step instanceof JdbcRequestTestStep) {
         //do the struff required
      }