Difference between revisions of "VCL testtool MacOSX Intel"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 12: Line 12:
 
= Setup =
 
= Setup =
 
OS installation can be done by pressing C button and insert installation DVD. Please consult manuals come with your Mac. X11.app must also installed.
 
OS installation can be done by pressing C button and insert installation DVD. Please consult manuals come with your Mac. X11.app must also installed.
 +
While install Tiger from DVD, choose X11 by selecting `customize'.
  
 
= Update the OS =
 
= Update the OS =
Line 27: Line 28:
 
Put the display to sheep when the compute is in active for: -> never
 
Put the display to sheep when the compute is in active for: -> never
  
 
+
* Disable the error report
 +
  Control Panel -> System -> Advanced -> Error report
 +
  You might to "Enable error report" and uncheck "Programs", or to
 +
"Disable error report".
 +
  Remember to enable later if you like it.
  
  
 
= Download and install =
 
= Download and install =
* OOo 2.1RC2
+
From Terminal:
http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.1.0rc2/OOo_2.1.0rc2_20061130_Win32Intel_install_ja_wJRE.exe
+
$ ftp ftp://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/2.1.0rc2_20061130/OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg
* QA tool
+
* OOo 2.0.3RC7 (for testtool, see details, http://www.openoffice.org/issues/show_bug.cgi?id=70761 and
ftp://ftp.ooodev.org/pub/qa/qatesttool_ooo201_20062311.tgz
+
http://www.openoffice.org/issues/show_bug.cgi?id=71973 )
 +
$ ftp ftp://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/2.0.3rc7/OOo_2.0.3rc7_MacOSXIntel_ja.dmg
 +
* QA scripts
 +
$ ftp ftp://ftp.ooodev.org/pub/qa/qatesttool_ooo201_20062311.tgz
  
 
== Verification of MD5 sums ==
 
== Verification of MD5 sums ==
You might to download a MD5 sum checktool from [http://www.etree.org/md5com.html] and to install it.
+
% md5 OOo_2.0.3rc7_MacOSXIntel_ja.dmg OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg qatesttool_ooo201_20062311.tgz
* run a MD5 check against the downloaded file
+
MD5 (OOo_2.0.3rc7_MacOSXIntel_ja.dmg) = 031332004a135738f3b66aae71b5c885
md5sum OOo_2.1.0rc2_20061130_Win32Intel_install_ja_wJRE.exe
+
MD5 (OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg) = c3a8a93b05ebaf3d497862b3a3aa442d
* check the MD5 sum
+
MD5 (qatesttool_ooo201_20062311.tgz) = d43d1ed59ea7bd10330be1276d79c6b1
:compare with the one from [http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10261]
+
* Check the qatesttool_ooo201_20062311.tgz MD5 sum
+
:compare with the one from [http://qa.openoffice.org/servlets/ReadMsg?list=dev&msgNo=7328]
+
  
% md5sum qatesttool_ooo201_20062311.tgz
+
MD5sum of OOo packages can be found:
d43d1ed59ea7bd10330be1276d79c6b1  qatesttool_ooo201_20062311.tgz
+
http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10273
 +
MD5 sum of qatesttool script can be found:
 +
http://qa.openoffice.org/servlets/ReadMsg?list=dev&msgNo=7328
 +
MD5sum of OOo 2.0.3rc7 (for testtool)
 +
http://www.openoffice.org/servlets/ReadMsg?listName=releases&msgNo=9693
  
 
== Installation ==
 
== Installation ==
 
It's done as usual. You may want to follow instruction from official installation guide.<br>
 
It's done as usual. You may want to follow instruction from official installation guide.<br>
(If wrong, raise an issue!)<br>
+
(If wrong, raise an issue!)
 +
 
 +
double click OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg
 +
-> drag and drop to Application folder
 +
 
 +
double click dmg ->
 +
OOo_2.0.3rc7_MacOSXIntel_ja.dmg
 +
-> drag and drop to Desktop
 +
 
 +
 
 +
<br>
 +
however, ou may want to follow instruction from official installation guide.<br>
 +
(If the instruction is wrong, raise an issue!)
 
[http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE_A4.pdf English]<br>
 
[http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE_A4.pdf English]<br>
 
[http://documentation.openoffice.org/setup_guide2/2.x/ja/SETUP_GUIDE_A4J.pdf Japanese]<br>
 
[http://documentation.openoffice.org/setup_guide2/2.x/ja/SETUP_GUIDE_A4J.pdf Japanese]<br>
  
== QA tools ==
+
 
* C:\Document and Settings\<User Name>\Application Data\testtool.ini has been created like following:
+
== VCL testtools setting ==
[Misc]
+
Due to #i69378#, testtool come with 2.1RC2 doesn't work for MacOSX Intel
ServerTimeout=100000
+
http://www.openoffice.org/issues/show_bug.cgi?id=69378
StopOnSyntaxError=0
+
that's why we used testtool from 2.0.3rc7
AutoReload=0
+
(For Japanese only: recognition of IPA font by spadmin
AutoSave=0
+
X11 -> X terminal
CurrentProfile=_profile_testtool
+
% ~/Desktop/OpenOffice.org\ 2.0.app/Contents/MacOS/program/spadmin
ScriptFontName=Courier
+
% /Applications/OpenOffice.org\ 2.1.app/Contents/MacOS/program/spadmin
ScriptFontStyle=normal
+
)
ScriptFontSize=12
+
 
 +
% cp /Users/maho/Desktop/OpenOffice.org\ 2.0.app/Contents/MacOS/program/soffice /Users/maho/Desktop/OpenOffice.org\ 2.0.app/Contents/MacOS/program/testtool
 +
(change /Users/maho to your account)
 
   
 
   
[Path]
+
$ sudo mkdir /work
BaseDir=
+
$ sudo chown maho /work
LogBaseDir=
+
$ cd /work
HIDDir=
+
$ mkdir qa ; cd qa
 +
$ tar xvfz qatesttool_ooo201_20062311.tgz
 +
$ cd qa/qatesttool/script/unix
 +
 
 +
* apply following patch to ooo_releasetest.sh
 +
see also: http://www.openoffice.org/issues/show_bug.cgi?id=70761
 +
--- ooo_releasetests.sh.org 2006-12-15 09:13:57.000000000 +0900
 +
+++ ooo_releasetests.sh 2006-12-15 09:15:16.000000000 +0900
 +
@@ -44,12 +44,12 @@
 
   
 
   
  [GUI Platform]
+
  # set location of testscripts
  Current=501
+
  # (the directory, where directory 'qatesttool' exists)
All=501
+
-sLocation=/share/_OOo/cvs/qa
 +
+sLocation=/work/qa
 
   
 
   
[WinGeom]
 
WinParams=228,124,802,620;1;0,0,0,0;
 
 
   
 
   
  [OooProgramDir]
+
  # set location of TestTool
  Current=C:\Program Files\OpenOffice.org 2.1
+
  # (full path including executable 'testtool')
All=C:\Program Files\OpenOffice.org 2.1
+
-sTestTool="/opt/openoffice.org2.1/program/testtool.bin"
 +
+sTestTool="/Users/maho/Desktop/OpenOffice.org 2.0.app/Contents/MacOS/program/testtool"
 
   
 
   
  [_profile_testtool]
+
  # set location of close-office file
  LogBaseDir=C:\work\qa\qatesttool\errorlog
+
  # (see cvs)
BaseDir=C:\work\qa\qatesttool
+
@@ -101,9 +101,9 @@
HIDDir=C:\work\qa\qatesttool\global\hid
+
        do
AutoReload=0
+
                  echo "Running soffices' processes: "
AutoSave=0
+
                # kill office, if exists
StopOnSyntaxError=0
+
-                  #killall -9 soffice.bin
*.bas=C:\work\qa\qatesttool\framework\first
+
-                  pkill -9 soffice.bin
 +
-                ps -fe | grep $USER | grep "soffice.bin" | grep -v "grep"
 +
+                  /usr/bin/killall -9 soffice.bin
 +
+                  #pkill -9 soffice.bin
 +
+                ps -Aj | grep $USER | grep "soffice.bin" | grep -v "grep"
 +
       
 +
                echo "****************************************************"
 +
                echo "Will run: " $x
 +
@@ -119,14 +119,14 @@
 +
                        testtoolpid=$!
 +
                        echo "PID of Testtool: " $testtoolpid
 
   
 
   
[LRU]
+
-                        if ps -p $testtoolpid > /dev/null ; then
MaxLRU=4
+
+                        if ps -p $testtoolpid | grep $testtoolpid > /dev/null ; then
LRU1=C:\work\qa\qatesttool\framework\first\first.bas
+
                            echo " Successfully started"
 +
                          else
 +
                            echo " There might be something wrong with starting the Testtool!"
 +
                          fi
 
   
 
   
[Communication]
+
                        ######### wait until Testtool has finished & closed
Host=localhost
+
-                        while ps -p $testtoolpid > /dev/null ;
TTPort=12479
+
+                        while ps -p $testtoolpid | grep $testtoolpid > /dev/null ;
UnoPort=10241
+
                          do
+
                                    sleep 2
[Crashreporter]
+
                                    i=$((i+2))
UseProxy=false
+
ProxyServer=none
+
ProxyPort=8080
+
AllowContact=false
+
ReturnAddress=
+
+
[Misc]
+
ServerTimeout=4500
+
StopOnSyntaxError=0
+
AutoReload=0
+
AutoSave=0
+
CurrentProfile=_profile_testtool
+
ScriptFontName=Courier
+
ScriptFontStyle=normal
+
ScriptFontSize=12
+
  
* Extract qatesttool_ooo201_20062311.tgz at C:\work\qa so that tree become:
 
C:\work\work\qa\testtool ...
 
  
* Apply following patch for ooo_releasetests.bat
+
* Prepare ~/Library/Application\ Support/.testtoolrc
  
C:\work\qa\qatesttool\script\win32\ooo_relesetests.bat
+
[Misc]
--- qa/qatesttool/script/win32/ooo_releasetests.bat        Mon Oct 16 20:22:45 2006
+
CurrentProfile=_profile_Default
+++ qa/qatesttool/script/win32/ooo_releasetests.bat        Sun May 28 19:34:33 2006
+
ServerTimeout=4500
@@ -59,10 +59,10 @@
+
+
  rem set location of TestTool
+
  rem (full path including executable 'testtool')
+
-set tool="C:\qatesttool\bin\win32\testtool.exe"
+
+set tool="C:\Program Files\OpenOffice.org 2.1\program\testtool.exe"
+
+
  rem set path to directory which contains directory 'qatesttool'
+
-set work="C:\qatesttool\scripts"
+
+set work="C:\work\qa"
+
+
  %tool% -run %work%\qatesttool\framework\first\first.bas
+
  %tool% -run %work%\qatesttool\global\tools\closeoffice.bas
+
  
= QAtest =
+
[Crashreporter]
 +
UseProxy=false
 +
ProxyServer=none
 +
ProxyPort=8080
 +
AllowContact=false
 +
ReturnAddress=
  
* Make sure that quick start is not active (you can verify by no seagull small icon at the right bottom of your screen)
+
[_profile_Default]
* removed C:\work\qa\qatesttool\errorlogs\*res (if present)
+
BaseDir=/work/qa/qatesttool
* removed C:\Document and Settings\<UserName>\Application Data\OpenOffice.org2 (if present)
+
LogBaseDir=/work/qa/qatesttool/errorlog/
* Double click C:\work\qa\qatesttool\script\win32\ooo_releasetests.bat
+
StopOnSyntaxError=0
 +
HIDDir=/work/qa/qatesttool/global/hid
 +
*.bas=/work/qa/qatesttool/framework/first
  
I recived following message from Windows XP:
+
[GUI Platform]
Important warning of Windows Security.
+
Current=12
To protect this computer, Windows firewall blocks some
+
functions. Do you block this program?''
+
Name(N): OpenOffice.org 2.1
+
Producer(P): OpenOffice.org
+
  
I ignored this massage...during test.
+
[WinGeom]
 +
WinParams=0,44,920,630;1;0,0,0,0;
 +
 
 +
[OooProgramDir]
 +
Current=/Applications/OpenOffice.org 2.1.app/Contents/MacOS/program
 +
All=/Applications/OpenOffice.org 2.1.app/Contents/MacOS/program
 +
 
 +
[Communication]
 +
Host=localhost
 +
TTPort=12479
 +
UNOPort=13480
 +
= QAtest =
 +
Application->X11->Xterm
 +
$ cd /work/qa/qatesttool/script/unix
 +
$ rm -rf ~/Library/Application\ Support/OpenOffice.org\ 2.1 /work/qa/qatesttool/errorlog/*res; bash ooo_releasetests.sh
  
 
= Summary =
 
= Summary =
  
Check the result files for errors and upload the *res files to the IssueTracker.
+
Check the result files for errors in /work/qa/qatesttool/errorlog/
 +
and upload the *res files to the IssueTracker.
 
If any found, try to reproduce manually and file bugs if needed.
 
If any found, try to reproduce manually and file bugs if needed.
 
+
Following file is actually what Japanese team's result of MacOSX Intel.
= Note =
+
http://www.openoffice.org/nonav/issues/showattachment.cgi/41456/errorlog-MacOSXIntel-OOo21.tar.gz
Please see http://qa.openoffice.org/servlets/ReadMsg?list=dev&msgNo=7469 for original.
+

Revision as of 04:24, 12 January 2007


WIP WIP WIP This page is intended to help the MacOSX Intel Tiger users to use the Testtool. 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

Usually Tiger for Intel will come with your Mac.

Setup

OS installation can be done by pressing C button and insert installation DVD. Please consult manuals come with your Mac. X11.app must also installed. While install Tiger from DVD, choose X11 by selecting `customize'.

Update the OS

Please update your OS to the newest one by:

  • System Preferences -> Software update

Some miscellaneous settings

We should not move mouse during this test. Screensaver is also harmful, activate sleep mode is very harmful.

  • System Preferences -> Desktop & screen saver -> Screen Saver ->
 Start screen saver -> never
  • System Preferences -> Energy Saver -> Put the computer to sleep

when it is inactive for -> never

  • System Preferences -> Energy Saver -> Put the computer to sleep

Put the display to sheep when the compute is in active for: -> never

  • Disable the error report
  Control Panel -> System -> Advanced -> Error report
  You might to "Enable error report" and uncheck "Programs", or to

"Disable error report".

  Remember to enable later if you like it.


Download and install

From Terminal: $ ftp ftp://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/2.1.0rc2_20061130/OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg

http://www.openoffice.org/issues/show_bug.cgi?id=71973 )

$ ftp ftp://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/2.0.3rc7/OOo_2.0.3rc7_MacOSXIntel_ja.dmg

  • QA scripts

$ ftp ftp://ftp.ooodev.org/pub/qa/qatesttool_ooo201_20062311.tgz

Verification of MD5 sums

% md5 OOo_2.0.3rc7_MacOSXIntel_ja.dmg OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg qatesttool_ooo201_20062311.tgz MD5 (OOo_2.0.3rc7_MacOSXIntel_ja.dmg) = 031332004a135738f3b66aae71b5c885 MD5 (OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg) = c3a8a93b05ebaf3d497862b3a3aa442d MD5 (qatesttool_ooo201_20062311.tgz) = d43d1ed59ea7bd10330be1276d79c6b1

MD5sum of OOo packages can be found: http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=10273 MD5 sum of qatesttool script can be found: http://qa.openoffice.org/servlets/ReadMsg?list=dev&msgNo=7328 MD5sum of OOo 2.0.3rc7 (for testtool) http://www.openoffice.org/servlets/ReadMsg?listName=releases&msgNo=9693

Installation

It's done as usual. You may want to follow instruction from official installation guide.
(If wrong, raise an issue!)

double click OOo_2.1.0rc2_20061130_MacOSXIntel_install_ja.dmg -> drag and drop to Application folder

double click dmg -> OOo_2.0.3rc7_MacOSXIntel_ja.dmg -> drag and drop to Desktop



however, ou may want to follow instruction from official installation guide.
(If the instruction is wrong, raise an issue!) English
Japanese


VCL testtools setting

Due to #i69378#, testtool come with 2.1RC2 doesn't work for MacOSX Intel http://www.openoffice.org/issues/show_bug.cgi?id=69378 that's why we used testtool from 2.0.3rc7 (For Japanese only: recognition of IPA font by spadmin X11 -> X terminal % ~/Desktop/OpenOffice.org\ 2.0.app/Contents/MacOS/program/spadmin % /Applications/OpenOffice.org\ 2.1.app/Contents/MacOS/program/spadmin )

% cp /Users/maho/Desktop/OpenOffice.org\ 2.0.app/Contents/MacOS/program/soffice /Users/maho/Desktop/OpenOffice.org\ 2.0.app/Contents/MacOS/program/testtool (change /Users/maho to your account)

$ sudo mkdir /work $ sudo chown maho /work $ cd /work $ mkdir qa ; cd qa $ tar xvfz qatesttool_ooo201_20062311.tgz $ cd qa/qatesttool/script/unix

  • apply following patch to ooo_releasetest.sh

see also: http://www.openoffice.org/issues/show_bug.cgi?id=70761 --- ooo_releasetests.sh.org 2006-12-15 09:13:57.000000000 +0900 +++ ooo_releasetests.sh 2006-12-15 09:15:16.000000000 +0900 @@ -44,12 +44,12 @@

# set location of testscripts
# (the directory, where directory 'qatesttool' exists)

-sLocation=/share/_OOo/cvs/qa +sLocation=/work/qa


# set location of TestTool
# (full path including executable 'testtool')

-sTestTool="/opt/openoffice.org2.1/program/testtool.bin" +sTestTool="/Users/maho/Desktop/OpenOffice.org 2.0.app/Contents/MacOS/program/testtool"

# set location of close-office file
# (see cvs)

@@ -101,9 +101,9 @@

        do
                 echo "Running soffices' processes: "
               # kill office, if exists

- #killall -9 soffice.bin - pkill -9 soffice.bin - ps -fe | grep $USER | grep "soffice.bin" | grep -v "grep" + /usr/bin/killall -9 soffice.bin + #pkill -9 soffice.bin + ps -Aj | grep $USER | grep "soffice.bin" | grep -v "grep"

                echo "****************************************************"
                echo "Will run: " $x

@@ -119,14 +119,14 @@

                        testtoolpid=$!
                        echo "PID of Testtool: " $testtoolpid

- if ps -p $testtoolpid > /dev/null ; then + if ps -p $testtoolpid | grep $testtoolpid > /dev/null ; then

                            echo " Successfully started"
                         else
                            echo " There might be something wrong with starting the Testtool!"
                         fi

                        ######### wait until Testtool has finished & closed

- while ps -p $testtoolpid > /dev/null ; + while ps -p $testtoolpid | grep $testtoolpid > /dev/null ;

                         do
                                    sleep 2
                                    i=$((i+2))


  • Prepare ~/Library/Application\ Support/.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/ StopOnSyntaxError=0 HIDDir=/work/qa/qatesttool/global/hid

  • .bas=/work/qa/qatesttool/framework/first

[GUI Platform] Current=12

[WinGeom] WinParams=0,44,920,630;1;0,0,0,0;

[OooProgramDir] Current=/Applications/OpenOffice.org 2.1.app/Contents/MacOS/program All=/Applications/OpenOffice.org 2.1.app/Contents/MacOS/program

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

QAtest

Application->X11->Xterm $ cd /work/qa/qatesttool/script/unix $ rm -rf ~/Library/Application\ Support/OpenOffice.org\ 2.1 /work/qa/qatesttool/errorlog/*res; bash ooo_releasetests.sh

Summary

Check the result files for errors in /work/qa/qatesttool/errorlog/ and upload the *res files to the IssueTracker. If any found, try to reproduce manually and file bugs if needed. Following file is actually what Japanese team's result of MacOSX Intel. http://www.openoffice.org/nonav/issues/showattachment.cgi/41456/errorlog-MacOSXIntel-OOo21.tar.gz

Personal tools