Re: [pgAdmin4][RM3936] Feature tests failing intermittently for SQLeditor related test cases
От | Dave Page |
---|---|
Тема | Re: [pgAdmin4][RM3936] Feature tests failing intermittently for SQLeditor related test cases |
Дата | |
Msg-id | CA+OCxoyx-epUZ0n1wSoWWYjYyyVnuSWtoudMaChtJ3wO+_gaJQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [pgAdmin4][RM3936] Feature tests failing intermittently for SQLeditor related test cases (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>) |
Ответы |
Re: [pgAdmin4][RM3936] Feature tests failing intermittently for SQLeditor related test cases
|
Список | pgadmin-hackers |
Akshay, can you look at this please? On Tue, Jan 29, 2019 at 1:36 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote: > > Hi Hackers, > > Attached is the updated patch. I have changed fill_input_by_field_name function to use javascript to set values of textboxes and the selector is changed from xpath to CSS with a :not(:disabled) clause. With this, test case will fail iftried to set the value of a disabled input. > > Kindly review. > > > On Mon, Jan 28, 2019 at 5:44 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote: >> >> >> >> On Mon, Jan 28, 2019 at 5:39 PM Dave Page <dpage@pgadmin.org> wrote: >>> >>> On Mon, Jan 28, 2019 at 12:05 PM Aditya Toshniwal >>> <aditya.toshniwal@enterprisedb.com> wrote: >>> > >>> > Hi Dave, >>> > >>> > On Mon, Jan 28, 2019 at 5:01 PM Dave Page <dpage@pgadmin.org> wrote: >>> >> >>> >> Hi >>> >> >>> >> On Mon, Jan 28, 2019 at 7:00 AM Aditya Toshniwal >>> >> <aditya.toshniwal@enterprisedb.com> wrote: >>> >> > >>> >> > Hi Hackers, >>> >> > >>> >> > Attached is the patch to fix failing SQL editor related feature tests. >>> >> > The failure is occurring mostly because of send_keys function of selenium which sometimes does not input the completetext. The change will use Codemirror javascript object to set the text. >>> >> > >>> >> > I have also added new args flag "--modules" which can be used after --pkg where you can test a specific module fileunder the pkg. This is not 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 simulate an actual person, so if you try to seta disabled text box using send_keys, it won't. Places where disabled fields doesn't matter, send_keys can be removed. >>> >>> Can't we just do something like: >>> >>> if input.disabled == false: >>> input.value = '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" -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgadmin-hackers по дате отправления: