Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goTbh-0005Vt-QW for pgadmin-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 13:39:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goTbg-0000ky-CU for pgadmin-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 13:39:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goTbg-0000gg-0u for pgadmin-hackers@lists.postgresql.org; Tue, 29 Jan 2019 13:39:16 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goTbd-0004SK-6o for pgadmin-hackers@postgresql.org; Tue, 29 Jan 2019 13:39:15 +0000 Received: by mail-wr1-x444.google.com with SMTP id p4so22106398wrt.7 for ; Tue, 29 Jan 2019 05:39:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IQfIWVNBWADPQRuvelr6jdd15uBunUkHXZLeZyjEQik=; b=rWTDvcruRRgPt1Bbhy6T+pWHY3GTW1l+No45hucvVusMoYc9W7ic/BHaiAYIVKAHPc i4unTBtCspQDJY/JUEhByhyDq99YPEv4i1z4XrnQZVk1rtMyiEvarIfuS2lhLWvnDK8g YeHevn2Dx5mYd47B1kqtFVYQYe3a4Z+maXVuOSLJ7ucM3s3w1BT6DPgTXWZuCWhN/SV7 5WX1T3Nf4UKS4/KFEZfwfGxnlzJ9Vcs1Hq4fS8wvcm8izxn55mqtwTZH9R6kVXYkd3O5 fSRR42FDMY3Ux4Zr43OUuRVTDuuE108Q0AUs9BjXCBvez7LgJc3gfjnny2jEOMeY3rRU jp3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IQfIWVNBWADPQRuvelr6jdd15uBunUkHXZLeZyjEQik=; b=hsRrhBJHziMYk2SR1d2GTnn5IEQbJqpv276y93vmnIkDUkCf90owJ1jh++Rst8FbrT JdSShQ9JgpgaeOHqH3Z22XUw8jnGmqvTrPksnmwaW7ncz9QPSd9gQ602jxX+qnxPFxez hHGjjKVdgOdI48PncjPHk41Ux4eevs0CiLERhZacEYNfpOAcbFnE+yh5FNtaLzAjBTDb R9uyYfYgIrdfrbo23iZ/p9L7J2wyPy2HpQ2LOSlrVsC+MLywRYI6kLkF3N6QKCBIF0eX 0yHNB1s/lXXddyQkYVmVPlPAMq6Eq1YpsGB3S3yhc7PxXNvc6HtuJwEdzxPGQUPJGuE7 FMAA== X-Gm-Message-State: AJcUukfk+fwAzdNx9u++1tIcUY5BA3gMABq/75TOlWMuKDwRIMT9e5Yo g/gbUbbktdgAB0jFwA0HaShZ9RYIN8vE0b/HftBcbA== X-Google-Smtp-Source: ALg8bN5kBt0N7zMh6UZNrIQ2pJ6+EDHXVHNvq/+Akp7fv2jabCHXW7DPmpzQZNu8svIWZW47GiKcLdrHVHHP22F2otg= X-Received: by 2002:adf:8264:: with SMTP id 91mr25018367wrb.312.1548769151824; Tue, 29 Jan 2019 05:39:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Tue, 29 Jan 2019 13:39:00 +0000 Message-ID: Subject: Re: [pgAdmin4][RM3936] Feature tests failing intermittently for SQL editor related test cases To: Aditya Toshniwal Cc: pgadmin-hackers , Akshay Joshi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Akshay, can you look at this please? On Tue, Jan 29, 2019 at 1:36 PM Aditya Toshniwal wrote: > > Hi Hackers, > > Attached is the updated patch. I have changed fill_input_by_field_name fu= nction to use javascript to set values of text boxes and the selector is ch= anged from xpath to CSS with a :not(:disabled) clause. With this, test case= will fail if tried to set the value of a disabled input. > > Kindly review. > > > On Mon, Jan 28, 2019 at 5:44 PM Aditya Toshniwal wrote: >> >> >> >> On Mon, Jan 28, 2019 at 5:39 PM Dave Page wrote: >>> >>> On Mon, Jan 28, 2019 at 12:05 PM Aditya Toshniwal >>> wrote: >>> > >>> > Hi Dave, >>> > >>> > On Mon, Jan 28, 2019 at 5:01 PM Dave Page wrote: >>> >> >>> >> Hi >>> >> >>> >> On Mon, Jan 28, 2019 at 7:00 AM Aditya Toshniwal >>> >> wrote: >>> >> > >>> >> > Hi Hackers, >>> >> > >>> >> > Attached is the patch to fix failing SQL editor related feature te= sts. >>> >> > The failure is occurring mostly because of send_keys function of s= elenium which sometimes does not input the complete text. The change will u= se Codemirror javascript object to set the text. >>> >> > >>> >> > I have also added new args flag "--modules" which can be used afte= r --pkg where you can test a specific module file under the pkg. This is no= t so useful for build but definitely helpful for the developers. >>> >> >>> >> One of the most common failures I see is failure to fill in the >>> >> details on the Add Server dialogue (it might type half of an entry, >>> >> then just hang). Should we get rid of all uses of send_keys? >>> > >>> > Setting the text using javascript executor can be done. send_keys sim= ulate an actual person, so if you try to set a disabled text box using sen= d_keys, it won't. Places where disabled fields doesn't matter, send_keys ca= n be removed. >>> >>> Can't we just do something like: >>> >>> if input.disabled =3D=3D false: >>> input.value =3D 'Foo'; >>> else: >>> raise exception .... >> >> I'll check if this can be done. Will get back. >>> >>> >>> -- >>> Dave Page >>> Blog: http://pgsnake.blogspot.com >>> Twitter: @pgsnake >>> >>> EnterpriseDB UK: http://www.enterprisedb.com >>> The Enterprise PostgreSQL Company >> >> >> >> -- >> Thanks and Regards, >> Aditya Toshniwal >> Software Engineer | EnterpriseDB Software Solutions | Pune >> "Don't Complain about Heat, Plant a tree" > > > > -- > Thanks and Regards, > Aditya Toshniwal > Software Engineer | EnterpriseDB Software Solutions | Pune > "Don't Complain about Heat, Plant a tree" --=20 Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company