Exemplo n.º 1
0
def client():
    wait.untilServerRunning("127.0.0.1", 5000)
    print("client up and running")
    browser = webbrowser.get('firefox')
    urls = ['http://localhost:5000/',
            'http://localhost:5000/route1',
            'http://localhost:5000/route2',
            'http://localhost:5000/user/jim',
            'http://localhost:5000/sum/625/875',
            'http://localhost:5000/']
    for url in urls:
        time.sleep(5)
        browser.open(url, new=2)
Exemplo n.º 2
0
def client():
    wait.untilServerRunning("127.0.0.1", 5000)
    print("client up and running")
    browser = webbrowser.get('firefox')
    urls = [
        'http://localhost:5000/login?username=tom&password=mot',
        'http://localhost:5000/login?username=sue&password=incorrect',
        'http://localhost:5000/login?username=jim&password=mij',
        'http://localhost:5000/'
    ]
    for url in urls:
        time.sleep(5)
        webbrowser.open(url)
Exemplo n.º 3
0
def client():
    wait.untilServerRunning("127.0.0.1", 5000)
    print("client up and running")
    browser = webbrowser.get('firefox')
    browser.open(f'http://localhost:5000/')