Difference between revisions of "Qa/Testtool FD6"

From Apache OpenOffice Wiki
< Qa
Jump to: navigation, search
(Work in progress - adding setup modes)
m (Testtool FD6 en moved to Qa/Testtool FD6: Categorizing.)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Category:Quality Assurance]]
 +
 
This page is intended to help the Linux users to use the Testtool. The info on this page is for Fedora Core 6, but it's useful for most Linux distros.
 
This page is intended to help the Linux users to use the Testtool. The info on this page is for Fedora Core 6, but it's useful for most Linux distros.
 +
Please, change 'ja' for your ISO language code when needed.
 +
Also take into account this info is up to version 2.1.
  
 
= How to obtain OS =
 
= How to obtain OS =
 
From the [http://fedora.redhat.com/download/mirrors.html Red Hat site],  
 
From the [http://fedora.redhat.com/download/mirrors.html Red Hat site],  
seek some mirror and download Fedora Core 6 DVD image FC-6-i386-DVD.iso .
+
seek some mirror and download Fedora Core 6 DVD image FC-6-i386-DVD.iso.
  
= Setup modes =
+
= Setup =
  
 
As the releases tests takes about 15 hours and use the mouse, keyboard or an OpenOffice.org instance can't be used, most people would prefer an alternative way to running the tests in the main box. The two common methods are:
 
As the releases tests takes about 15 hours and use the mouse, keyboard or an OpenOffice.org instance can't be used, most people would prefer an alternative way to running the tests in the main box. The two common methods are:
Line 11: Line 15:
 
* To use another user in a separate windowing system display and don't use OpenOffice.org while running the tests at all.
 
* To use another user in a separate windowing system display and don't use OpenOffice.org while running the tests at all.
  
 +
== Installation of OS inside the Vmware player ==
 +
You can use the virtual machine you want, but Vmware player is free and is a lot faster than Qemu, so we recommend using Qemu to setup the virtual machine and Vmware player to running it.
  
== Installation of OS inside the vmware player ==
+
The basic steps are:
* creation of HDD image
+
* creation of HDD image
  From command prompt, at C:\Program Files\qemu-0.8.2-windows:
+
qemu-img create -f vmdk FC6.vmdk 10G
  > qemu-img create -f vmdk FC6.vmdk 10G
+
: You should have qemu-img on your OS path or run this command in the directory where Qemu is installed.
  * creation of FC6.vmx  
+
   
config.version = "8"
+
* creation of FC6.vmx
virtualHW.version = "3"
+
: Save the following section as the FC6.vmx file in the same folder in which the image file is located.
 
+
config.version = "8"
displayName = "FedoraCore6"
+
virtualHW.version = "3"
guestOS = "other26xlinux"
+
memsize = "256"
+
displayName = "FedoraCore6"
usb.present = "FALSE"
+
guestOS = "other26xlinux"
floppy0.present = "FALSE"
+
memsize = "256"
sound.present = "TRUE"
+
usb.present = "FALSE"
sound.virtualdev = "es1371"
+
floppy0.present = "FALSE"
 
+
sound.present = "TRUE"
ethernet0.present = "TRUE"
+
sound.virtualdev = "es1371"  
ethernet0.addressType = "generated"
+
ethernet0.generatedAddressOffset = "0"
+
ethernet0.present = "TRUE"
ethernet0.connectionType = "bridged"
+
ethernet0.addressType = "generated"
 
+
ethernet0.generatedAddressOffset = "0"
ide0:0.present = "TRUE"
+
ethernet0.connectionType = "bridged"
ide0:0.fileName = "FC6.vmdk"
+
ide0:0.deviceType = "disk"
+
ide0:0.present = "TRUE"
ide0:0.startConnected = "TRUE"
+
ide0:0.fileName = "FC6.vmdk"
ide0:0.redo = ""
+
ide0:0.deviceType = "disk"
 
+
ide0:0.startConnected = "TRUE"
ide1:0.present = "TRUE"
+
ide0:0.redo = ""
ide1:0.fileName = "auto detect"
+
ide1:0.deviceType = "cdrom-raw"
+
ide1:0.present = "TRUE"
 
+
ide1:0.fileName = "auto detect"
ide1:1.present = "TRUE"
+
ide1:0.deviceType = "cdrom-raw"
ide1:1.fileName = "auto detect"
+
ide1:1.deviceType = "cdrom-raw"
+
ide1:1.present = "TRUE"
 +
ide1:1.fileName = "auto detect"
 +
ide1:1.deviceType = "cdrom-raw"
  
 
* follow instruction of p.89 of Guest OS installation guide
 
* follow instruction of p.89 of Guest OS installation guide
Line 51: Line 59:
 
  http://www.vmware.com/support/pubs/player_pubs.html
 
  http://www.vmware.com/support/pubs/player_pubs.html
  
* installation of vmware tools
+
= Update the OS =
I didn't install vmware tools at the moment.
+
 
+
4. Update the OS
+
 
* Click F icon at the top left corner
 
* Click F icon at the top left corner
 
  system tool->Software updater
 
  system tool->Software updater
 
   
 
   
5. Some misc setting OS.
+
= Some miscellaneous settings =
 
* Screen saver
 
* Screen saver
 
  Menu ->System->Settings->Screen saver
 
  Menu ->System->Settings->Screen saver
 
  ->uncheck Run screen while idle
 
  ->uncheck Run screen while idle
 
* X resolution (1024x768)
 
* X resolution (1024x768)
Menu ->Administration->Display->Hardware->LCD Panel 1280x1024 (for instance)
+
Menu ->Administration->Display->Hardware->LCD Panel 1280x1024 (for instance)
Menu ->Administration->Display->Hardware->Monitor Setting->Resolution 1280x1024
+
Menu ->Administration->Display->Hardware->Monitor Setting->Resolution 1280x1024
Menu ->Administration->Display->Hardware->Monitor Setting->Color depth millions
+
Menu ->Administration->Display->Hardware->Monitor Setting->Color depth millions
 
* Electricity
 
* Electricity
Menu ->Settings ->Other personal settings->
+
Menu ->Settings ->Other personal settings->Electricity->no sleep
Electricity->no sleep
+
  
6. Download OOo and installations.
+
= Download and install =
* OOo Download
+
* OOo
% wget http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.1.0rc2/OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
+
% wget http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.1.0rc2/OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
QA tool
+
* QA tool
% wget ftp://ftp.ooodev.org/pub/qa/qatesttool_ooo201_20062311.tgz
+
% wget ftp://ftp.ooodev.org/pub/qa/qatesttool_ooo201_20062311.tgz
  
* Verification of MD5 sums
+
== Verification of MD5 sums ==
* OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
+
* Look for the MD5 sum for you version
http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10261
+
http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10261
% md5sum OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
+
* run a MD5 check against the downloaded file
ff1a462cf22182f81de7b6ca450b73b2  OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
+
% md5sum OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
* qatesttool_ooo201_20062311.tgz
+
* check the MD5 sum.
  http://qa.openoffice.org/servlets/ReadMsg?list=dev&msgNo=7328
+
:compare with the one from [http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10261]
% md5sum qatesttool_ooo201_20062311.tgz
+
:For instance:
d43d1ed59ea7bd10330be1276d79c6b1 qatesttool_ooo201_20062311.tgz
+
  ff1a462cf22182f81de7b6ca450b73b2  OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
  
* Installation
+
* Check the qatesttool_ooo201_20062311.tgz MD5 sum
( http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE_A4.pdf )
+
:compare with the one from [http://qa.openoffice.org/servlets/ReadMsg?list=dev&msgNo=7328]
% tar xvfz OOo_2.0.4rc3_060927_LinuxIntel_install_ja_wJRE.tar.gz
+
...
+
% cd cd OOE680_m6_native_packed-1_ja.9095/RPMS/
+
% su
+
Password:
+
# rpm -Uvh *rpm
+
# cd desktop-integration/
+
# rpm -Uvh openoffice.org-redhat-menus-2.1-5.noarch.rpm
+
  
* Java
+
% md5sum qatesttool_ooo201_20062311.tgz
>From http://www.java.com/ I downloaded
+
d43d1ed59ea7bd10330be1276d79c6b1  qatesttool_ooo201_20062311.tgz
jre-1_5_0_09-linux-i586-rpm.bin
+
.
+
# sh jre-1_5_0_09-linux-i586-rpm.bin
+
  
 +
== Installation ==
 +
[http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE_A4.pdf Setup Guide]
 +
% tar xvfz OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
 +
...
 +
% cd cd OOE680_m6_native_packed-1_ja.9095/RPMS/
 +
% su
 +
Password:
 +
# rpm -Uvh *rpm
 +
# cd desktop-integration/
 +
# rpm -Uvh openoffice.org-redhat-menus-2.1-5.noarch.rpm
 +
 +
== Java ==
 +
* From the official [http://www.java.com/ java web site] download the latest version and install. Ex.:
 +
# sh jre-1_5_0_09-linux-i586-rpm.bin
 +
 +
== QA tools ==
 
* Extract QA tools
 
* Extract QA tools
# su
+
# su
# mkdir /work
+
# mkdir /work
# chown maho /work
+
# chown maho /work
# exit
+
# exit
% cd /work
+
% cd /work
% mkdir qa ; cd qa  
+
% mkdir qa ; cd qa  
% tar xvfz ~/qatesttool_ooo201_20062311.tgz
+
% tar xvfz ~/qatesttool_ooo201_20062311.tgz
% cd qatesttool/script/unix
+
% cd qatesttool/script/unix
applied following patch for ooo_releasetests.sh.
+
  
--- ooo_releasetests.sh_org    2006-12-09 11:29:12.000000000 +0900
+
* Apply the following patch for ooo_releasetests.sh.
+++ ooo_releasetests.sh 2006-12-09 11:29:28.000000000 +0900
+
--- ooo_releasetests.sh_org    2006-12-09 11:29:12.000000000 +0900
@@ -44,7 +44,7 @@
+
+++ ooo_releasetests.sh 2006-12-09 11:29:28.000000000 +0900
+
@@ -44,7 +44,7 @@
# set location of testscripts
+
 
# (the directory, where directory 'qatesttool' exists)
+
  # set location of testscripts
-sLocation=/share/_OOo/cvs/qa
+
  # (the directory, where directory 'qatesttool' exists)
+sLocation=/work/qa
+
-sLocation=/share/_OOo/cvs/qa
+
+sLocation=/work/qa
 +
 
 
   
 
   
 
  # set location of TestTool
 
  # set location of TestTool
  
prepare ~/.testtoolrc like following:
+
* prepare ~/.testtoolrc like following:
$ vi ~/.testtoolrc
+
$ vi ~/.testtoolrc
[Misc]
+
[Misc]
CurrentProfile=_profile_Default
+
CurrentProfile=_profile_Default
ServerTimeout=4500
+
ServerTimeout=4500
 
+
[Crashreporter]
+
[Crashreporter]
UseProxy=false
+
UseProxy=false
ProxyServer=none
+
ProxyServer=none
ProxyPort=8080
+
ProxyPort=8080
AllowContact=false
+
AllowContact=false
ReturnAddress=
+
ReturnAddress=
 
+
[_profile_Default]
+
[_profile_Default]
BaseDir=/work/qa/qatesttool
+
BaseDir=/work/qa/qatesttool
LogBaseDir=/work/qa/qatesttool/errorlog/
+
LogBaseDir=/work/qa/qatesttool/errorlog/
HIDDir=/work/qa/qatesttool/global/hid
+
HIDDir=/work/qa/qatesttool/global/hid
StopOnSyntaxError=0
+
StopOnSyntaxError=0
 
+
[GUI Platform]
+
[GUI Platform]
Current=03
+
Current=03
 
+
[WinGeom]
+
[WinGeom]
WinParams=99,49,920,630;1;0,0,0,0;
+
WinParams=99,49,920,630;1;0,0,0,0;
 
+
[OooProgramDir]
+
[OooProgramDir]
Current=/opt/openoffice.org2.1/
+
Current=/opt/openoffice.org2.1/
All=/opt/openoffice.org2.1/
+
All=/opt/openoffice.org2.1/
 
+
[Communication]
+
[Communication]
Host=localhost
+
Host=localhost
TTPort=12479
+
TTPort=12479
UNOPort=13480
+
UNOPort=13480
 
+
7. Do QAtest
+
= Do QAtest =
$ cd /work/qa/qatesttool/script/unix
+
$ cd /work/qa/qatesttool/script/unix
$ rm -rf ~/.openoffice.org2 /work/qa/qatesttool/errorlog/*res; /usr/bin/time bash ooo_releasetests.sh
+
$ rm -rf ~/.openoffice.org2 /work/qa/qatesttool/errorlog/*res; /usr/bin/time bash ooo_releasetests.sh
  
8. Summary
+
= Summary =
  
All *res files have been uploaded as:
+
Upload the *res files to the IssueTracker.
http://www.openoffice.org/nonav/issues/showattachment.cgi/41310/errorlog-FC6-OOo21-woJRE.tar.gz
+

Latest revision as of 02:29, 21 January 2007


This page is intended to help the Linux users to use the Testtool. The info on this page is for Fedora Core 6, but it's useful for most Linux distros. Please, change 'ja' for your ISO language code when needed. Also take into account this info is up to version 2.1.

How to obtain OS

From the Red Hat site, seek some mirror and download Fedora Core 6 DVD image FC-6-i386-DVD.iso.

Setup

As the releases tests takes about 15 hours and use the mouse, keyboard or an OpenOffice.org instance can't be used, most people would prefer an alternative way to running the tests in the main box. The two common methods are:

  • Install the OS inside a virtual machine
  • To use another user in a separate windowing system display and don't use OpenOffice.org while running the tests at all.

Installation of OS inside the Vmware player

You can use the virtual machine you want, but Vmware player is free and is a lot faster than Qemu, so we recommend using Qemu to setup the virtual machine and Vmware player to running it.

The basic steps are:

  • creation of HDD image
qemu-img create -f vmdk FC6.vmdk 10G
You should have qemu-img on your OS path or run this command in the directory where Qemu is installed.
  • creation of FC6.vmx
Save the following section as the FC6.vmx file in the same folder in which the image file is located.
config.version = "8"
virtualHW.version = "3"

displayName = "FedoraCore6"
guestOS = "other26xlinux"
memsize = "256"
usb.present = "FALSE"
floppy0.present = "FALSE"
sound.present = "TRUE"
sound.virtualdev = "es1371" 

ethernet0.present = "TRUE"
ethernet0.addressType = "generated"
ethernet0.generatedAddressOffset = "0"
ethernet0.connectionType = "bridged"

ide0:0.present = "TRUE"
ide0:0.fileName = "FC6.vmdk"
ide0:0.deviceType = "disk"
ide0:0.startConnected = "TRUE"
ide0:0.redo = ""

ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"

ide1:1.present = "TRUE"
ide1:1.fileName = "auto detect"
ide1:1.deviceType = "cdrom-raw"
  • follow instruction of p.89 of Guest OS installation guide
http://www.vmware.com/pdf/GuestOS_guide.pdf
http://www.vmware.com/support/pubs/player_pubs.html

Update the OS

  • Click F icon at the top left corner
system tool->Software updater

Some miscellaneous settings

  • Screen saver
Menu ->System->Settings->Screen saver
->uncheck Run screen while idle
  • X resolution (1024x768)
Menu ->Administration->Display->Hardware->LCD Panel 1280x1024 (for instance)
Menu ->Administration->Display->Hardware->Monitor Setting->Resolution 1280x1024
Menu ->Administration->Display->Hardware->Monitor Setting->Color depth millions
  • Electricity
Menu ->Settings ->Other personal settings->Electricity->no sleep

Download and install

  • OOo
% wget http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.1.0rc2/OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
  • QA tool
% wget ftp://ftp.ooodev.org/pub/qa/qatesttool_ooo201_20062311.tgz

Verification of MD5 sums

  • Look for the MD5 sum for you version
http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10261
  • run a MD5 check against the downloaded file
% md5sum OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
  • check the MD5 sum.
compare with the one from [1]
For instance:
ff1a462cf22182f81de7b6ca450b73b2  OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
  • Check the qatesttool_ooo201_20062311.tgz MD5 sum
compare with the one from [2]
% md5sum qatesttool_ooo201_20062311.tgz
d43d1ed59ea7bd10330be1276d79c6b1  qatesttool_ooo201_20062311.tgz

Installation

Setup Guide

% tar xvfz OOo_2.1.0rc2_20061130_LinuxIntel_install_ja.tar.gz
...
% cd cd OOE680_m6_native_packed-1_ja.9095/RPMS/
% su
Password:
# rpm -Uvh *rpm
# cd desktop-integration/
# rpm -Uvh openoffice.org-redhat-menus-2.1-5.noarch.rpm 

Java

  • From the official java web site download the latest version and install. Ex.:
# sh jre-1_5_0_09-linux-i586-rpm.bin 

QA tools

  • Extract QA tools
# su
# mkdir /work
# chown maho /work
# exit
% cd /work
% mkdir qa ; cd qa 
% tar xvfz ~/qatesttool_ooo201_20062311.tgz
% cd qatesttool/script/unix
  • Apply the following patch for ooo_releasetests.sh.
--- ooo_releasetests.sh_org     2006-12-09 11:29:12.000000000 +0900
+++ ooo_releasetests.sh 2006-12-09 11:29:28.000000000 +0900
@@ -44,7 +44,7 @@
 
 # set location of testscripts
 # (the directory, where directory 'qatesttool' exists)
-sLocation=/share/_OOo/cvs/qa
+sLocation=/work/qa
 

# set location of TestTool
  • prepare ~/.testtoolrc like following:
$ vi ~/.testtoolrc
[Misc]
CurrentProfile=_profile_Default
ServerTimeout=4500

[Crashreporter]
UseProxy=false
ProxyServer=none
ProxyPort=8080
AllowContact=false
ReturnAddress=

[_profile_Default]
BaseDir=/work/qa/qatesttool
LogBaseDir=/work/qa/qatesttool/errorlog/
HIDDir=/work/qa/qatesttool/global/hid
StopOnSyntaxError=0

[GUI Platform]
Current=03

[WinGeom]
WinParams=99,49,920,630;1;0,0,0,0;

[OooProgramDir]
Current=/opt/openoffice.org2.1/
All=/opt/openoffice.org2.1/

[Communication]
Host=localhost
TTPort=12479
UNOPort=13480

Do QAtest

$ cd /work/qa/qatesttool/script/unix
$ rm -rf ~/.openoffice.org2 /work/qa/qatesttool/errorlog/*res; /usr/bin/time bash ooo_releasetests.sh

Summary

Upload the *res files to the IssueTracker.

Personal tools