rtobj.getSessionList('testname','-a')
getSessionList is a method of the simwb.rtobj object. The method getSessionList returns a sorted list of sessions present in the test. If the argument testname is not specified, the function will return the list of sessions in the test that is currently loaded on the real-time host.