paypal / AATT

Automated Accessibility Testing Tool
BSD 3-Clause "New" or "Revised" License
602 stars 106 forks source link

java.net.SocketException: Unexpected end of file from server #49

Closed snehalharde closed 5 years ago

snehalharde commented 5 years ago

I get the mentioned error. The selenium test runs for a long time about 5 mins and then it returns. java.net.SocketException: Unexpected end of file from server. Also the terminal log shows the ENGINE statement twice. Can you please look into it and lmk what I am missing?

code: String request = "http://localhost:3000/evaluate"; String source = URLEncoder.encode(driver().findElement(By.cssSelector(".formPanel")).getAttribute("outerHTML"), "UTF-8"); String urlParameters = "source=" + source + "&engine=axe&output=html&errLevel=1,2,3&level=WCAG2AA";

mpnkhan commented 5 years ago

Try it now. Had pushed in some fixes.

mpnkhan commented 5 years ago

you may also need to do npm install after gitpull as the phantomjs is deprecated for phantomjs-prebuilt (https://github.com/Medium/phantomjs)

snehalharde commented 5 years ago

I still get same error. 2 .html files get generated in the tmp folder in a gap of 2 minutes. These files have the div element from the dom.

On Tue, Jul 2, 2019, 6:39 AM Nawaz notifications@github.com wrote:

you may also need to do npm install after gitpull as the phantomjs is deprecated for phantomjs-prebuilt (https://github.com/Medium/phantomjs)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPPK6TPHPPLYX3C6B6LP5MV5ZA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZA225Y#issuecomment-507620727, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPLLKTCUQIIJQZ7T5ZLP5MV5ZANCNFSM4H4VSZ7Q .

mpnkhan commented 5 years ago

Please check if your API is working with http://localhost:3000/test/AATT_API.html

snehalharde commented 5 years ago

I get connection refused

On Wed, Jul 3, 2019, 3:17 AM Nawaz notifications@github.com wrote:

Please check if your API is working with http://localhost:3000/evaluate

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPKA7YJ4CWJPEP7CCFLP5RHBVA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZDQUDY#issuecomment-507972111, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPM6IMRVYOCK4YAZPQ3P5RHBVANCNFSM4H4VSZ7Q .

snehalharde commented 5 years ago

Sorry my bad. I get below

Error
Cannot GET /evaluate

On Wed, Jul 3, 2019, 10:30 AM snehalph . snehal.harde@gmail.com wrote:

I get connection refused

On Wed, Jul 3, 2019, 3:17 AM Nawaz notifications@github.com wrote:

Please check if your API is working with http://localhost:3000/evaluate

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPKA7YJ4CWJPEP7CCFLP5RHBVA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZDQUDY#issuecomment-507972111, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPM6IMRVYOCK4YAZPQ3P5RHBVANCNFSM4H4VSZ7Q .

snehalharde commented 5 years ago

I am able to get response from sniffhtml but evaluate do not work. Please advise

On Wed, Jul 3, 2019 at 10:34 AM snehalph . snehal.harde@gmail.com wrote:

Sorry my bad. I get below

Error
Cannot GET /evaluate

On Wed, Jul 3, 2019, 10:30 AM snehalph . snehal.harde@gmail.com wrote:

I get connection refused

On Wed, Jul 3, 2019, 3:17 AM Nawaz notifications@github.com wrote:

Please check if your API is working with http://localhost:3000/evaluate

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPKA7YJ4CWJPEP7CCFLP5RHBVA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZDQUDY#issuecomment-507972111, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPM6IMRVYOCK4YAZPQ3P5RHBVANCNFSM4H4VSZ7Q .

mpnkhan commented 5 years ago

I'm sorry you are having trouble. I just created a fresh clone and tested everything. I suspect something do with your phantomjs-prebuilt. Could you kindly create some folder and repeat the steps below? Also paste what you see in logs.

$ git clone https://github.com/paypal/AATT.git $ npm install Start in Debug mode $ DEBUG=AATT* http_port=3000 node app.js http://localhost:3000/test/AATT_API.html , type axe in input field 'engine' and submit.

Please paste what you see in logs.

snehalharde commented 5 years ago

Below are the logs

AATT:log E N G I N E axe C:\Paypa A11Y\AATT\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe [ '--config=C:\Users\snehal_harde\VisualregressionDump\Paypa A11Y\AATT\config\config.json', 'C:\Paypa A11Y\AATT\src\axe_url.js', 'C:\Paypa A11Y\AATT\tmp\1562855315860.html', 'string' ] +42s AATT:log E N G I N E axe C:\Paypa A11Y\AATT\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe [ '--config=C:\Users\snehal_harde\VisualregressionDump\Paypa A11Y\AATT\config\config.json', 'C:\Paypa A11Y\AATT\src\axe_url.js', 'C:\Paypa A11Y\AATT\tmp\1562855435867.html', 'string' ] +2m

On Thu, Jul 11, 2019 at 12:47 AM Nawaz notifications@github.com wrote:

I'm sorry you are having trouble. I just created a fresh clone and tested everything. I suspect something do with your phantomjs-prebuilt. Could you kindly create some folder and repeat the steps below? Also paste what you see in logs.

$ git clone https://github.com/paypal/AATT.git $ npm install Start in Debug mode $ DEBUG=AATT* http_port=3000 node app.js http://localhost:3000/test/AATT_API.html , type axe in input field 'engine' and submit.

Please paste what you see in logs.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPJOPYH263SYCZD6ANTP623PZA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZVPV4A#issuecomment-510327536, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPP4QXWFLO7H4LKRPZDP623PZANCNFSM4H4VSZ7Q .

mpnkhan commented 5 years ago

You are using a windows machine. I will test it on windows machine and let you know. FYI. The first log takes me 8s for you it takes +42s and +2m and its timing out. Why is it posted twice? are you trying with the above test url only?

snehalharde commented 5 years ago

I followed the steps you provided on Jul 11, 2019 at 12:47 AM. for both axe and chrome the request is triggered twice.

On Thu, Jul 11, 2019, 11:56 PM Nawaz notifications@github.com wrote:

You are using a windows machine. I will test it on windows machine and let you know. FYI. The first log takes me 8s for you it takes +42s and +2m and its timing out. Why is it posted twice? are you trying with the above test url only?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPLR2QKEPWBWUUOOSELP676HTA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYTG7Y#issuecomment-510735231, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPI3LXFXUAS2EJQVRZDP676HTANCNFSM4H4VSZ7Q .

snehalharde commented 5 years ago

Do you have any update on this?

On Fri, Jul 12, 2019, 10:12 AM snehalph . snehal.harde@gmail.com wrote:

I followed the steps you provided on Jul 11, 2019 at 12:47 AM. for both axe and chrome the request is triggered twice.

On Thu, Jul 11, 2019, 11:56 PM Nawaz notifications@github.com wrote:

You are using a windows machine. I will test it on windows machine and let you know. FYI. The first log takes me 8s for you it takes +42s and +2m and its timing out. Why is it posted twice? are you trying with the above test url only?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPLR2QKEPWBWUUOOSELP676HTA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYTG7Y#issuecomment-510735231, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPI3LXFXUAS2EJQVRZDP676HTANCNFSM4H4VSZ7Q .

mpnkhan commented 5 years ago

Created a new branch for windows(https://github.com/paypal/AATT/tree/windows) and tested it on my Windows 10. Hope this works for you.

Steps:

$ git clone https://github.com/paypal/AATT.git
$ cd AATT
$ git checkout windows
$ npm i
$ DEBUG=AATT* http_port=3000 node app.js

And test it with http://localhost:3000/test/AATT_API.html. screenshot

mpnkhan commented 5 years ago

@snehalharde working? https://github.com/mpnkhan/aatt-windows

snehalharde commented 5 years ago

Sorry, I did not get chance to respond. I do not get error anymore. I appreciate all your help.

On Thu, Jul 18, 2019 at 12:35 AM Nawaz notifications@github.com wrote:

@snehalharde https://github.com/snehalharde working? https://github.com/mpnkhan/aatt-windows

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/paypal/AATT/issues/49?email_source=notifications&email_token=AIFZFPL2Z5UQ6POZAQR4NFLP77XHRA5CNFSM4H4VSZ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2HJOMQ#issuecomment-512661298, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFZFPI2JI5TVY5DSWC3TDTP77XHRANCNFSM4H4VSZ7Q .

mpnkhan commented 5 years ago

You are welcome!