Skip to content

TestRecorder: nullPointer in generatePointerEventArguments(int x, int y) - impossible to test UI with Toolbar and overflow menu #3038

Description

@ThomasH99

In the following code,

if(cmp!=null && cmp.getParent() instanceof Form) {
            cmp = cmp.getParent();
        }
        
        String componentName = cmp.getName();

the line String componentName = cmp.getName(); generates a null pointer exception.

It seems the logic is wrong since this will happen for any part of the ui having the Form as its parent. And/or there should be a test for whether cmp is null.

Not sure if it is relevant but this happens every time when clicking a command in the overflow menu. Which seems to prevent generating test cases for a UI using the Toolbar and the overflow menu.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions