Line 59: | Line 59: | ||
*** {{result|none|[[QA/TestCases/KickstartKsHdDevicePathKsCfg|kicstart on hard drive (ks=hd:)]]}} | *** {{result|none|[[QA/TestCases/KickstartKsHdDevicePathKsCfg|kicstart on hard drive (ks=hd:)]]}} | ||
*** {{result|none|kickstart on cdrom (ks=cdrom)}} | *** {{result|none|kickstart on cdrom (ks=cdrom)}} | ||
** {{result|pass|[[QA:Repodata_validity_test_case | ** {{result|pass|[[QA:Repodata_validity_test_case]]}} | ||
** {{result|pass|[[QA:Comps_Validity_Test_Case | ** {{result|pass|[[QA:Comps_Validity_Test_Case }} | ||
** {{result|pass|[[QA:Core_package_dependency_closure_test_case | ** {{result|pass|[[QA:Core_package_dependency_closure_test_case}} | ||
** {{result|inprogress|[[QA:Core_package_existence_test_case]]}} | ** {{result|inprogress|[[QA:Core_package_existence_test_case]]}} | ||
** {{result|inprogress|[[QA:Installer_image_presence_test_case]]}} | ** {{result|inprogress|[[QA:Installer_image_presence_test_case]]}} |
Revision as of 08:02, 13 May 2011
This page provides a high-level roadmap for implementing the Is_anaconda_broken_proposal project. More detailed tasks can be found in autoqa TRAC roadmap. We follow these steps to define the methods by which we initiate testing
First, in order to provide a consistent and documented test approach, the existing Fedora Install test plan [1] will be revisited. The test plan will be adjusted to ensure proper test coverage for the failure scenarios listed above. Existing test cases will be reviewed for accuracy. New test cases will be created using the Template:QA/Test_Case template. Finally, the test plan will be adjusted to match the improved Fedora Release Criteria [2]. This includes adjusting the test case priority to match milestone criteria.
Next, in order to reduce the setup/execution time, improve efficiency and to provide test results on a more consistent basis, a subset of test cases will be chosen for automation. Tests will be written in python and will be developed and executed on a system supporting KVM virtualization. Test scripts will be responsible for preparing a virtual install environment, initiating a kickstart install and validating the results. Once an initial batch of tests exist, they will be formally integrated into the AutoQA project.
Last, a method will be developed for collecting test results into a single test result matrix. Results may be posted to the wiki directly, or a custom turbogears application may be needed to display results [3]. The results will be easily accessible for testers and the installer development team.
The project will be divided into several phases.
Phase#1 - proof of concept
- Revise Fedora Install test plan to ensure adequate test coverage exists for failure scenarios listed above
- Select a small, but representative, subset of test cases from the install test plan to automateThe following test cases are selected:
- QA:Rawhide_Acceptance_Test_Plan
- DVD.iso Installation
- Boot.iso/Netinst.iso Installation
- Live.iso Installation
- upgrade an exiting system
- system with basic video driver
- Rescue installed system
- QA:Testcase_Memtest86
- Create python scripts to prepare KVM-based virtual environments for testing, initiate kickstart installs, and validate results
- Check the virtualization environment system sanity
- virt-install tree and ISO media.
- Print out test results
- Create python scripts to parse differenet parameters
- parse different repository: cdrom, http,ftp(anonymout, non anonymus), nfs, nfsiso, hard drive, QA:Testcase_Ftp_Repository, QA:Testcase_Nfs_Repository
- parse different kickstart delivery: http, file, hard drive, nfs QA/TestCases/KickstartKsHttpServerKsCfg, QA/TestCases/KickstartKsFilePathKsCfg, QA/TestCases/KickstartKsHdDevicePathKsCfg, QA/TestCases/KickstartKsNfsServerPathKsCfg
- Investigate methods for leveraging GUI automation to aid in automating applicable test cases
- Open Virt Viewer of the guest
- Input text into the GUI
- Close the Virt Viewer of the guest
Phase#2 - implementation
Implement the selected test cases
-
- system sanity
- parse arguments
- URL Installation
- system sanity
- parse arguments
- prepare kickstart
- {{result|pass|[[QA:Comps_Validity_Test_Case }}
- {{result|pass|[[QA:Core_package_dependency_closure_test_case}}
- DVD.iso Installation
- system sanity
- parse arguments
- prepare kickstart
- download remote media to local, since checksums and repoclosure does not work with remote media.
- create a function to report mediakit sanity status
- Boot.iso/Netinst.iso Installation
- Live.iso Installation
- upgrade an exiting system
- perform a default installation of the previous release
- install the current release
- QA:Testcase_Anaconda_User_Interface_Basic_Video_Driver
- QA:Testcase_Anaconda_rescue_mode
- Memory test - memtest86
Automate remainder of test cases from the install test plan
- Rawhide Acceptance Test Plan
- DVD installation
- Boot.iso/netinst.iso installation
- Live.iso installation
Implement the general test cases
- QA:Testcase_Anaconda_User_Interface_Cmdline
- QA:Testcase_Anaconda_updates.img_via_URL, QA:Testcase_Anaconda_updates.img_via_installation_source, QA:Testcase_Anaconda_updates.img_via_local_media
- QA:Testcase_Anaconda_save_traceback_to_remote_system, QA:Testcase_Anaconda_save_traceback_to_bugzilla, QA:Testcase_Anaconda_save_traceback_to_disk, QA:Testcase_Anaconda_traceback_debug_mode
- upgrade
Create kick start database to cover test cases that can be covered with kick start
- QA:Testcase_Anaconda_User_Interface_Graphical
- QA:Testcase_Anaconda_User_Interface_Text
- QA:Testcase_Anaconda_User_Interface_VNC
- different packages selections: QA/TestCases/PackageSetsDefaultPackageInstall, QA/TestCases/PackageSetsMinimalPackageInstall
- different partition: QA:Testcase_Anaconda_autopart_install, QA:Testcase_Anaconda_autopart_(encrypted)_install, QA:Testcase_Anaconda_autopart_(shrink)_install, QA:Testcase_Anaconda_autopart_(use_free_space)_install, QA/TestCases/PartitioningExt4OnNativeDevice, QA/TestCases/PartitioningExt3OnNativeDevice, QA/TestCases/PartitioningXFSOnNativeDevice, QA/TestCases/PartitioningBtrFSOnNativeDevice, QA/TestCases/PartitioningNoSwap, QA:Testcase_Partitioning_On_Software_RAID
- QA:Testcase_Anaconda_rescue_mode
Phase#3 - integration
- Identify test event triggers which will be used to automatically initiate testing
- Create appropriate control files and test wrappers to allow for scheduling tests through AutoQA (see Writing_AutoQA_Tests)
- Develop or update AutoQA test event hooks to accommodate new test events (see Writing_AutoQA_Hooks)
- Implement initial test result dashboard intended to eventually replace the wiki test matrix. The dashboard will also support FAS user test result submission. This will likely rely on
- ↑ QA:Fedora_13_Install_Test_Plan
- ↑ Fedora Release Criteria
- ↑ For a similar project see screenshot of is rawhide broken and source code and the QA:Rawhide_Acceptance_Test_Plan.