Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running automated tests repeatedly #47

Open
mbaas2 opened this issue Aug 22, 2024 · 6 comments
Open

Problems running automated tests repeatedly #47

mbaas2 opened this issue Aug 22, 2024 · 6 comments

Comments

@mbaas2
Copy link
Collaborator

mbaas2 commented Aug 22, 2024

As I ran automated tests repeatedly, I often noticed a problem which seemed mainly related to TestButtons (understandably, because that test clicks a lot of buttonsd consequently there's some event handling going on).

The event handling seemed to get out of sync with the frontend (which I still find puzzling because the Test waits for the controls to update).
As I ran TestButtons several times in a row (please test this using branch Issue_47 in which it is possible to do that, otherwise we're doing a ∪ of tests), I often saw this message on the JSWC server:
image001

The problem is that one thread has already switched to DemoMenu while the crashing thread is still processing "something" to do with the prior test - which is no longer visible in the browser (which shows DemoMenu).

Unfortunately I am unable to come up with a reliable repro. The command

]dtest C:\Git\jswc\Tests\eWC_Browser.dyalogtest TestButtons TestEdit TestButtons TestLines TestButtons TestButtons  -clear

has often behaved as described, but not always.

@mbaas2
Copy link
Collaborator Author

mbaas2 commented Aug 22, 2024

While we're at it, some more observations while running this series of tests:

Almost in every session I saw at least once a warning:

Link Warning: FileSystemWatcher error on directory: C:/Git/jswc watching may no longer be reliable.

I wasn't editing at all while tests were running.

And this came up once: (somehow something is out of sync as well)
grafik

@mkromberg
Copy link
Collaborator

mkromberg commented Aug 22, 2024 via email

@mbaas2
Copy link
Collaborator Author

mbaas2 commented Aug 22, 2024

Depends on how you define "lots" 😉 They might save screenshots or save .rng files, but < 10 files...
This all happens in the Tests folder which I had LINKed for my convencience, but actually it probably makes sense to not do that by default - I will take care of that.

@mkromberg
Copy link
Collaborator

mkromberg commented Aug 22, 2024 via email

@mbaas2
Copy link
Collaborator Author

mbaas2 commented Aug 22, 2024

Yep, it did. No more messages.

@mbaas2
Copy link
Collaborator Author

mbaas2 commented Aug 23, 2024

Another instance of the issue mentioned in the initial post:

 48:22.029 w:  {Caller: "Demo_Issue82", Action:"WC", ID:"F1", Type:"Form", Properties:["Type","Caption","Posn","Size","Coord"]},
 48:22.089 w:  {Caller: "Demo_Issue82", Action:"WC", ID:"F1.S1", Type:"SubForm", Properties:["Type"]},
 48:22.093 w:  {Caller: "Demo_Issue82", Action:"WC", ID:"F1.S1.S2", Type:"SubForm", Properties:["Type"]},
 48:22.118 w:  {Caller: "Demo_Issue82", Action:"WG", ID:"F1",Properties:["Size"]},
880:Not returned:  Size 
∆WG[86] r←msg WaitForWG d ID(⍕WGID)
              ∧
 48:28.034 w:  {Caller: "DemoMenu", Action:"WC", ID:"LOGO", Type:"BitMap", Properties:["Type","File"]},
 48:28.043 w:  {Caller: "DemoMenu", Action:"WC", ID:"F1", Type:"Form", Properties:["Type","Caption","BCol","Coord","Size","Picture","Event"]},
 48:28.054 w:  {Caller: "DemoMenu", Action:"WC", ID:"F1.L1", Type:"Label", Properties:["Type","Caption","Posn","Size"]},
 48:28.241 w:  {Caller: "addDemoMenu", Action:"WG", ID:"F1",Properties:["Size"]},
 48:28.246 w:  {Caller: "addDemoMenu", Action:"WC", ID:"F1.MENU", Type:"Combo", Properties:["Type","Items","Text","Size","Event","Attach","Posn"]},
 48:28.250 w:  {Caller: "addDemoMenu", Action:"WC", ID:"F1.SCALE", Type:"Button", Properties:["Type","Caption","Style","State","Size","Event","Attach","Posn"]},
 48:28.256 w:  {Caller: "addDemoMenu", Action:"WC", ID:"F1.STOP", Type:"Button", Properties:["Type","Caption","Size","Event","Attach","Posn"]},

@mkromberg mkromberg changed the title Queue problems Problems running automated tests repeatedly Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants