[jbosstools-issues] [JBoss JIRA] Resolved: (JBDS-487) make ui tests run on a different UI thread (eg., using xvfb) so they can run locally without accidental user interaction

Nick Boldt (JIRA) jira-events at lists.jboss.org
Wed Dec 3 11:32:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBDS-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Boldt resolved JBDS-487.
-----------------------------

    Resolution: Done


This works, more or less:

# configure X server thread for tests; see http://wiki.eclipse.org/Modeling_Project_Releng/Building_Zips_And_Jars#UI_Testing
# pick a random port between 1 and 5
xport=$(expr '(' $RANDOM % 4 ')' + 1);
echo "Start Xvfb on :${xport}"
Xvfb :${xport} -ac & # -screen 0 1024x768x16 -ac &
export DISPLAY=localhost:${xport}.0
xhost +

(then run ant)

# drop X server process threads used by tests
if [[ -r /tmp/.X${xport}-lock ]]; then kill `cat /tmp/.X${xport}-lock`; fi
if [[ -f /tmp/.X${xport}-lock ]]; then rm -fr /tmp/.X${xport}-lock; fi




> make ui tests run on a different UI thread (eg., using xvfb) so they can run locally without accidental user interaction
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBDS-487
>                 URL: https://jira.jboss.org/jira/browse/JBDS-487
>             Project: Developer Studio
>          Issue Type: Feature Request
>            Reporter: Nick Boldt
>            Assignee: Nick Boldt
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list