예제 #1
0
파일: main.py 프로젝트: GunioRobot/pymatic
def main():
    if len(sys.argv) > 1:
        scriptfirstname = sys.argv[1].strip()
        settings = Settings()
        sf = ScriptFiles("../scripts")
        sf.runscriptbyfirstname(scriptfirstname, settings)
    else:
        # test1()
        # test2()
        # test3()
        # test4()
        # test5()
        test6()
예제 #2
0
파일: main.py 프로젝트: GunioRobot/pymatic
def test5():
    # nonfunctional test
    # login
    settings = Settings()
    sf = ScriptFiles("../scripts")
    print "starting in the background..."
    sf.runscriptbyfirstname("startcgoban", settings)
    print "started? alt tab now"
    auto = Automation(settings)
    auto.alttab()
    print "sending a click"
    emu = auto.getemu()
    emu.move(100, 500)
    emu.click()
    auto.close()
예제 #3
0
파일: main.py 프로젝트: GunioRobot/pymatic
def test6():
    settings = Settings()
    sf = ScriptFiles("../scripts")
    print "Starting Cgoban..."
    sf.runscriptbyfirstname("startcgoban_xvfb", settings)
    sf.runscriptbyfirstname("login", settings)
    sf.runscriptbyfirstname("killxvfb", settings)
예제 #4
0
파일: main.py 프로젝트: GunioRobot/pymatic
def test4():
    # TODO An environment variable for where to look for files
    settings = Settings()
    sf = ScriptFiles("../scripts")
    sf.runscriptbyfirstname("startcgoban", settings)
예제 #5
0
파일: main.py 프로젝트: GunioRobot/pymatic
def test2():
    sf = ScriptFiles("../scripts")
    sf.runscriptbyfirstname("helloworlds", Settings())