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

Pabt cannot be filtered by dynamic casename or tage which are generated by prerunmodifier script #606

Open
wendi616 opened this issue Dec 6, 2024 · 0 comments

Comments

@wendi616
Copy link
Contributor

wendi616 commented Dec 6, 2024

As the title, user can change the some of atrributes of the suite or case , in that case, if we try to filter with the modifier value by -t or -i, the pabot will get nothing, but it works in robot scenario.

Pabot Version: 4.0.4
Robot Version: 7.0.1

robot scenario:
`$ robot --prerunmodifier Modifier.py -i tag2 .

Test Prerun

Test Prerun.Test

new-name-2 | PASS |

Test Prerun.Test | PASS |
1 test, 1 passed, 0 failed

Test Prerun | PASS |
1 test, 1 passed, 0 failed

Output: C:\Dev\pabot_test\test_prerun\output.xml
Log: C:\Dev\pabot_test\test_prerun\log.html
Report: C:\Dev\pabot_test\test_prerun\report.html
`

Pabot scenario:
$ pabot --prerunmodifier Modifier.py -i tag2 . Suite 'Test Prerun' contains no tests matching tag 'tag2'. Stopping PabotLib process Robot Framework remote server at 127.0.0.1:8270 started. Robot Framework remote server at 127.0.0.1:8270 stopped. PabotLib process stopped Total testing: 0.0 seconds Elapsed time: 3.44 seconds

The case and modifier script can be found in attachement.
test_prerun.zip

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

1 participant