Forum Discussion

sanalpk's avatar
sanalpk
New Contributor
5 years ago

checking a request is still alive

Hi,

In SoapUI,  I need to hold a request for some time and exit if that request is not alive .

 

Please see below script

=======================

class Globals {
    static int a=0
}

while(1)
{
     sleep(100)

      if(/* here I need to check the request is closed by client*/)
     {
      Globals.a = 0
      break
     }
}
Please replay if anyone has idea on this.