I’m sorry Hanh Tran, but this is not a right answer for my problem.
It seems to me you don’t understand what I need to do.
The GlobalVariable in a Test Collection is reset at every Test Suite start and than the Login step is repeated. After that there is another problem: every test suite close the browser also without WebUI.closeBrowser().
So things are getting complicated. What you are trying to do will break the usual flow of test suite if you execute it separately. I suggest that each Test Suites should be independent of each other , do not try to mess it.
I can suggest you the following workaround by having ‘gl_isLogin’ variable (default is true)
if (already logged in)
GlobalVariable.gl_isLogin = true
//Not logged in yet, insert login steps below
End of ‘Login’ Test Case before you trying to close browser