tdtruong
12 years agoNew Contributor
How to create a common log in test case for the others ?
Hi,
I start to use SoapUI last week. I need to create a prerequisited test case for log in, then other test cases will do some stuffs after. But I dont find option to make it possible, tried to run the test case for logging in first , but after that the other test cases require log in again, like it must include login step in every test case. Is there option to make the log in as a seperated test case to avoid repeating it ?
Beside that, I dont understand the way soapUI control cookie. I.e : after logging in, I use groovy to show cookie like
but it returns nothing, I think it should contain session after logging , doesn it?
Thanks
I start to use SoapUI last week. I need to create a prerequisited test case for log in, then other test cases will do some stuffs after. But I dont find option to make it possible, tried to run the test case for logging in first , but after that the other test cases require log in again, like it must include login step in every test case. Is there option to make the log in as a seperated test case to avoid repeating it ?
Beside that, I dont understand the way soapUI control cookie. I.e : after logging in, I use groovy to show cookie like
import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport
import org.apache.http.impl.cookie.BasicClientCookie
def myClient = HttpClientSupport.getHttpClient()
def myStore = myClient.getCookieStore()
def cookieList = myStore.getCookies()
return "nbr---of---cookies : " + cookieList.size() + cookieList.toList()
but it returns nothing, I think it should contain session after logging , doesn it?
Thanks