KLLAcquireCredUI.py [plain text]
if __name__ == '__main__':
import os, sys
args = [os.path.realpath(os.path.expanduser("/Users/Shared/Raft/raft")), "-f"] + sys.argv
os.execv(args[0], args)
"""
KLLAcquireCredUI
Contact: lha@apple.com
2009/11/07
"""
testDescription = "Pop UI KerberosAgent and acquire credentials"
testVersion = "1.0"
testState = ProductionState testCustomDBSpec = {}
def runTest(params):
os.system("kdestroy -p ktestuser@ADS.APPLE.COM");
pid = os.fork()
if pid == 0:
os.execv("/usr/local/libexec/heimdal/bin/test-kll", ["test-kll", "ktestuser@ADS.APPLE.COM"]);
target.processes()["SecurityAgent"].mainWindow().textFields()[0].click()
keyboard.typeString_("foobar");
target.processes()["SecurityAgent"].mainWindow().buttons()["OK"].click()
res = os.waitpid(pid, 0)[1]
assert res == 0, "test-kll failed"
logPass()