Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cagb7-0005cd-IM for pgadmin-hackers@arkaria.postgresql.org; Mon, 06 Feb 2017 10:32:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cagb7-000525-5X for pgadmin-hackers@arkaria.postgresql.org; Mon, 06 Feb 2017 10:32:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cagat-0004Wz-1T for pgadmin-hackers@postgresql.org; Mon, 06 Feb 2017 10:32:23 +0000 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cagaq-0002q5-5t for pgadmin-hackers@postgresql.org; Mon, 06 Feb 2017 10:32:21 +0000 Received: by mail-it0-x22c.google.com with SMTP id r185so53995283ita.0 for ; Mon, 06 Feb 2017 02:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/kuQbP5GR10pclwPKHXwPCDJGCmwUe3f43Ta/c0wEGY=; b=pGZrRHtaL2GjW1SzDOkNzQQqxw/38/eMSe3S9Z62TBeTtXFPlGrayHZYeHybwa8rhK 6D3BCfWneHZ3CoExKzpahdGjUxYqOkOddAHbmvNsuqL18poPCIY84Upgns80RLllqi1O 90I2GDMlb0DiN1qfI1eQhegOkzTbeFXky4ZdutxCDBhPpsflWYIm7KPk6y1Oes7S8vPU 6FkZHBbxEwhGz87R7WliQnEbYGJJHhi0qZd0FbEpb8uwPsME4N5Y5KqI0MLH2SKhhABx agnlLIsiCYqvPeCDmltQOlD/nT/iLwcRch+uYUvoZgPh8HcLq/89Ntn1eKKqtIL9egqE vP7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/kuQbP5GR10pclwPKHXwPCDJGCmwUe3f43Ta/c0wEGY=; b=Mthc7WjvMetptKiL8dGnCQc8/Yqo4AnIp0ZAieiy2mkdMitORxKv/xrs4vWKWmKnLZ +WJDOCkBUcnFq22gsubknA6LYwvLNyd5qQEWAfe9EcwjZtwY4L8FNchxAt11aPWR/Af6 U41EHOeRpTsB5FFvhhOZrbZ99Z/YKPc3VNnsZtd2gcaKjZG7FpkyoQsNPb1JT1hp+jOg Kg11mrN0K4fRCt2u9ihBxAjtkrJhusrbNXZlYOrAFGHP0n80uziisHy/8VBcJfG3OoM5 +Kba5oqUry73GtSUjaXcASiDybKikuvs5+xCVla6ocXtYoWIa8W+in6c3VndZa/ENGgg UN1g== X-Gm-Message-State: AIkVDXK7m7edNNeugN+RhuqIFuC/73BiBHAuDYPPLJ/juyqJgkA+jazzCtNncuA8rmoK3V67kggl3WJmsvZj9A== X-Received: by 10.36.200.9 with SMTP id w9mr6942082itf.113.1486377139370; Mon, 06 Feb 2017 02:32:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.224.198 with HTTP; Mon, 6 Feb 2017 02:32:18 -0800 (PST) In-Reply-To: References: From: Dave Page Date: Mon, 6 Feb 2017 10:32:18 +0000 Message-ID: Subject: Re: Acceptance Tests against a browser (WIP) To: Atira Odhner Cc: George Gelashvili , pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Fri, Feb 3, 2017 at 9:56 PM, Atira Odhner wrote: > Hi Dave, > > Here is a new patch which includes the following: > - randomized ports > - delete the acceptance_test_db database in setup in case a prior run failed > - fixed size browser window Definitely getting there :-). A couple of thoughts/questions: - Now there are 2 tests in there, it's clear that both the Python server and browser session are restarted for each test. Can this be avoided? It'll really slow down test execution as more and more are added. - We've got a new monster name: pgadmin.acceptance.tests.sql_template_selection_by_postgres_version_works_feature_test.SQLTemplateSelectionByPostgresVersionWorksFeatureTest (which on disk is sql_template_select_by_postgres_version_works_feature_test.py). Names like that really must be shortened to something more sane and manageable. - I'm a little confused by why the tests cannot be run in server mode. The error says it's because the username/password is unknown - however, both the pgAdmin and database server usernames and passwords are in test_config.json. Thanks! -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers