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

Testcase for xorg-x11-utils package #67

Open
basheerk opened this issue May 27, 2016 · 0 comments
Open

Testcase for xorg-x11-utils package #67

basheerk opened this issue May 27, 2016 · 0 comments

Comments

@basheerk
Copy link
Contributor

Package : xorg-x11-utils

Description : A collection of client utilities which can be used to query the X server for various information.

Binaries Provided:

/usr/bin/edid-decode
/usr/bin/xdpyinfo
/usr/bin/xev
/usr/bin/xlsatoms
/usr/bin/xlsclients
/usr/bin/xlsfonts
/usr/bin/xprop
/usr/bin/xvinfo
/usr/bin/xwininfo

xlsclient:Xlsclients is a utility for listing information about the client applications
running on a display. It may be used to generate scripts representing a snapshot
of the user's current session.

xev :Xev creates a window and then asks the X server to send it events whenever any‐
thing happens to the window (such as it being moved, resized, typed in, clicked
in, etc.). You can also attach it to an existing window. It is useful for see‐
ing what causes events to occur and to display the information that they contain;
it is essentially a debugging and development tool, and should not be needed in
normal usage.

xwininfo:Xwininfo is a utility for displaying information about windows. Various informa‐
tion is displayed depending on which options are selected. If no options are
chosen, -stats is assumed.

xlsfonts:xlsfonts lists the fonts that match the given pattern.

Approach for Testing:

  1. Check for the existence of the binaries.

2.Start VNC Server on the host machine and export DISPLAY(export DISPLAY=:1) variable.

#vncserver :1 -SecurityTypes None > /dev/null
#export DISPLAY=:1

4.To check the functionality of the xlsfonts.

    #xlsfonts -display localhost:1 -l

5.To check the functionality of the xdpyinfo and check the exit status.

    #xdpyinfo -display localhost:1

6.To verify xlsclient:
a.start any xserver client application(xterm)
b.verify the client application is listed in the output of the xlsclient

    #xterm &
    #xlsclients -display localhost:1
    localhost  xterm

7.To verify the functionality of the xev and xwininfo.
a.create a window using xev
b.verify it using the xwininfo

    #/usr/bin/xev -display localhost:1 -name mywindow &
    #xwininfo -display localhost:1 -name mywindow

8.To verify the functionality of the xprop,to set/remove the property of the window.

Ex:
#/usr/bin/xev -display localhost:1 -name mywindow &

a.set the propery  _SURF_URL of the created
#xprop -id 0x1000001 -f _SURF_URL 8s -set _SURF_URL http://www.google.com
# xprop -id 0x1000001 | grep _SURF_URL
_SURF_URL(STRING) = "http://www.google.com"

b.remove the property
#xprop -id 0x1000001 -f _SURF_URL 8s -remove  _SURF_URL
# xprop -id 0x1000001 | grep _SURF_URL 
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