Hello,
I wanted to tweak a gnome-software upgrade test case [1] lately, and realized that... I can't. I got lost in the number of templates it's composed from (try it yourself). Even if you know wiki templates basics, it was too difficult to even find the page containing the source text that I saw rendered. And I was afraid that I'll break other pages elsewhere. So I decided I try to simplify that.7. I removed some old workarounds (F24 ones, should no longer apply).
I made all the adjustments on the staging wiki (I hope it's not getting purged over night). To compare the changes, click on the testcases from the production wiki:
https://fedoraproject.org/wiki/Template:Installation_test_matrix#Upgrade
https://fedoraproject.org/wiki/Template:Installation_test_matrix#Upgrade
and from the staging wiki:
https://stg.fedoraproject.org/wiki/Template:Installation_test_matrix#Upgrade
https://stg.fedoraproject.org/wiki/Template:Installation_test_matrix#Upgrade
See how the templates are used. The basic structure is so short and simple that I'll quote it here:
{{QA/Test_Case
|description={{upgrade_description|from=current|flavor=workstation|pkgset=workstation|live=1|tool=gnome-software}}
|setup={{upgrade_setup|from=current|flavor=workstation|pkgset=workstation|live=1}}
|actions={{gnome_software_upgrade_procedure}}
|results={{upgrade_results}}
}}
{{QA/Test_Case
|description={{upgrade_description|from=current|flavor=workstation|pkgset=workstation|live=1|tool=gnome-software}}
|setup={{upgrade_setup|from=current|flavor=workstation|pkgset=workstation|live=1}}
|actions={{gnome_software_upgrade_procedure}}
|results={{upgrade_results}}
}}
I think it's easy to see which template to look at if you want to adjust a particular section. Also it's quite obvious which parameters are passed to those templates and what effect it has.
All those test cases are composed from these templates:
https://stg.fedoraproject.org/wiki/Template:Upgrade_description
https://stg.fedoraproject.org/wiki/Template:Upgrade_setup
https://stg.fedoraproject.org/wiki/Template:Dnf_upgrade_procedure
https://stg.fedoraproject.org/wiki/Template:Gnome_software_upgrade_procedure
https://stg.fedoraproject.org/wiki/Template:Upgrade_results
https://stg.fedoraproject.org/wiki/Template:Upgrade_description
https://stg.fedoraproject.org/wiki/Template:Upgrade_setup
https://stg.fedoraproject.org/wiki/Template:Dnf_upgrade_procedure
https://stg.fedoraproject.org/wiki/Template:Gnome_software_upgrade_procedure
https://stg.fedoraproject.org/wiki/Template:Upgrade_results
Only the first one is somewhat complex (but short!). The rest is pretty simple, the last 3 are completely unparametrized.
With this setup, I believe we still hit the goal of avoid testcase content duplication (all the real content exists in a single place only, a change affects all testcases), and it's much easier for folks to adjust them now. The basic QA/Test_Case structure needs to be copied to all existing testcases, but it should be very stable and I don't think we need to fear desynchronization (I'll watch all those pages for changes anyway).
Thoughts? Objections to putting it to production?
[1] https://fedoraproject.org/wiki/QA:Testcase_upgrade_gnome-software_current_workstation
[1] https://fedoraproject.org/wiki/QA:Testcase_upgrade_gnome-software_current_workstation
_______________________________________________ test mailing list -- test@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to test-leave@xxxxxxxxxxxxxxxxxxxxxxx