rockmelonqa / rockmelonqa-ide

Test Automation IDE that generates and runs Playwright and Selenium code
MIT License
4 stars 3 forks source link

Manage missing mandatory fields #148

Open brogreenmoon opened 1 year ago

brogreenmoon commented 1 year ago

Manage missing mandatory fields by showing an error at the codegen stage.

For example, I save a test case with missing actions, pages and elements, like so:

image

When the test cases are parsed it should check that mandatory fields are present, and if any are not present codegen should stop at the end of the "Parsing" phase with the message "Parsing FAILED." and not move onto "Cleaning folder".

Errors should be shown in the codegen log for these, e.g:

Error: testFailures.tcase - Line 1, Action "Click" is missing "Element" Error: testFailures.tcase - Line 2, Missing "Action" Error: testFailures.tcase - Line 3, Action "Input" is missing "Page" and "Element"

vothaison commented 1 year ago

Hi @brogreenmoon Here is a proposed rules for the validations of the steps. Given that currently each step has 3 peices of info: Page, Element, and Data.

brogreenmoon commented 1 year ago

This is working perfectly for test cases, but not for test routines. For example:

image

gives:

image

quockhanh commented 1 year ago

Milestone v0.2.4 is already released, please move this ticket to other milestone

vothaison commented 1 year ago

Hi @brogreenmoon What are the new requirements/issues with this one?