def setUpBench(self):
        client = AppTestClient()

        # setup data
        client.add_multiple_to_mailbox(10, 'INBOX', to='*****@*****.**', cc='*****@*****.**', bcc='*****@*****.**')
        client.add_multiple_to_mailbox(10, 'TRASH', to='*****@*****.**', cc='*****@*****.**', bcc='*****@*****.**')
        client.add_multiple_to_mailbox(10, 'DRAFTS', to='*****@*****.**', cc='*****@*****.**', bcc='*****@*****.**')

        self.call_to_terminate = client.run_on_a_thread(logfile='results/app.log')
예제 #2
0
    def setUpBench(self):
        client = AppTestClient()

        # setup data
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag1'])
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag2'])
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag3'])
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag4'])

        self.call_to_terminate = client.run_on_a_thread(logfile='results/app.log')
예제 #3
0
    def setUpBench(self):
        client = AppTestClient()

        # setup data
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag1'])
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag2'])
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag3'])
        client.add_multiple_to_mailbox(10, 'INBOX', tags=['tag4'])

        self.call_to_terminate = client.run_on_a_thread(
            logfile='results/app.log')
    def setUpBench(self):
        client = AppTestClient()
        start_app_test_client(client)
        client.listenTCP()
        proxy = Proxy(proxy_port='8889', app_port='4567')

        # setup data
        client.add_multiple_to_mailbox(10, 'INBOX', to='*****@*****.**', cc='*****@*****.**', bcc='*****@*****.**')
        client.add_multiple_to_mailbox(10, 'TRASH', to='*****@*****.**', cc='*****@*****.**', bcc='*****@*****.**')
        client.add_multiple_to_mailbox(10, 'DRAFTS', to='*****@*****.**', cc='*****@*****.**', bcc='*****@*****.**')

        self.call_to_terminate = proxy.run_on_a_thread()
    def setUpBench(self):
        logging.disable('INFO')
        client = AppTestClient()
        start_app_test_client(client)
        client.listenTCP()
        proxy = Proxy(proxy_port='8889', app_port='4567')

        # setup data
        client.add_multiple_to_mailbox(10,
                                       'INBOX',
                                       to='*****@*****.**',
                                       cc='*****@*****.**',
                                       bcc='*****@*****.**')
        client.add_multiple_to_mailbox(10,
                                       'TRASH',
                                       to='*****@*****.**',
                                       cc='*****@*****.**',
                                       bcc='*****@*****.**')
        client.add_multiple_to_mailbox(10,
                                       'DRAFTS',
                                       to='*****@*****.**',
                                       cc='*****@*****.**',
                                       bcc='*****@*****.**')

        self.call_to_terminate = proxy.run_on_a_thread()
    def setUpBench(self):
        client = AppTestClient()

        # setup data
        client.add_multiple_to_mailbox(10,
                                       'INBOX',
                                       to='*****@*****.**',
                                       cc='*****@*****.**',
                                       bcc='*****@*****.**',
                                       tags=['inbox'])
        client.add_multiple_to_mailbox(10,
                                       'TRASH',
                                       to='*****@*****.**',
                                       cc='*****@*****.**',
                                       bcc='*****@*****.**',
                                       tags=['trash'])
        client.add_multiple_to_mailbox(10,
                                       'DRAFTS',
                                       to='*****@*****.**',
                                       cc='*****@*****.**',
                                       bcc='*****@*****.**',
                                       tags=['drafts'])

        self.call_to_terminate = client.run_on_a_thread(
            logfile='results/app.log')
예제 #7
0
 def setUpBench(self):
     client = AppTestClient()
     client.add_multiple_to_mailbox(100, "INBOX")
     self.call_to_terminate = client.run_on_a_thread(logfile="results/app.log")
예제 #8
0
 def setUpBench(self):
     client = AppTestClient()
     client.add_multiple_to_mailbox(100, 'INBOX')
     self.call_to_terminate = client.run_on_a_thread(logfile='results/app.log')