From Fedora Project Wiki

(Created page with "{QA/Test_Case |description=This test case validates that the `dconf` package is functioning as expected by setting, reading, and resetting a configuration key. |setup=Ensure that the `dconf` package is installed by executing the following command: # sudo dnf install dconf |actions= # Write a value to a dconf key: # $ dconf write /org/gnome/desktop/background/picture-uri "'file:///usr/share/backgrounds/gnome/Adwaita-night.jpg'" # Read the value of the dconf key: # $ dcon...")
 
No edit summary
 
Line 1: Line 1:
{QA/Test_Case
{{QA/Test_Case
|description=This test case validates that the `dconf` package is functioning as expected by setting, reading, and resetting a configuration key.
|description=This test case validates that the `dconf` package is functioning as expected by setting, reading, and resetting a configuration key.
|setup=Ensure that the `dconf` package is installed by executing the following command:
|setup=Ensure that the `dconf` package is installed by executing the following command:

Latest revision as of 08:47, 17 August 2023

Description

This test case validates that the dconf package is functioning as expected by setting, reading, and resetting a configuration key.

Setup

Ensure that the dconf package is installed by executing the following command:

  1. sudo dnf install dconf

How to test

  1. Write a value to a dconf key:
  2. $ dconf write /org/gnome/desktop/background/picture-uri "'file:///usr/share/backgrounds/gnome/Adwaita-night.jpg'"
  3. Read the value of the dconf key:
  4. $ dconf read /org/gnome/desktop/background/picture-uri
  5. Reset the dconf key to its default value:
  6. dconf reset /org/gnome/desktop/background/picture-uri

Expected Results

  1. After writing the value, reading the dconf key should output:
  2. 'file:///usr/share/backgrounds/gnome/Adwaita-night.jpg'
  3. After resetting the key, reading the dconf key again should output nothing or the default value.

Optional

For exploratory testing:

  1. Try setting, reading, and resetting keys in different dconf schemas.
  2. Experiment with different types of values (strings, integers, booleans, etc.) when setting keys.
  3. Use the dconf dump and dconf load commands to backup and restore a dconf profile.