Difference between revisions of "Qa/vi/Testtool WinXP"

From Apache OpenOffice Wiki
< Qa
Jump to: navigation, search
m (Added citation, category and edited FC6 link)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Quality Assurance]]
+
<h1>Tiến trình bảo đảm mức chất lượng (QA) của OpenOffice.org</h1>
 
+
<h1>Tiến trình bảo đảm mức chất lượng (QA) của OpenOffice.org</h1>
+
  
 
<h2>Chạy công cụ tự động testtool</h2>
 
<h2>Chạy công cụ tự động testtool</h2>
Line 7: Line 5:
 
''Dựa vào thư điện tử của Nakata Maho.''
 
''Dựa vào thư điện tử của Nakata Maho.''
  
'''testtool''' là một công cụ tự động chạy trong nền. Nó chạy một số văn lệnh đặc biệt để thao tác phần mềm OpenOffice.org trong nhiều trường hợp thường gặp. Kết quả là một số tập tin kết thúc bằng <tt>.res</tt> nằm trong thư mục <tt>logs</tt> được tạo trên đĩa của bạn.
+
'''testtool''' là một công cụ tự động chạy trong nền. Nó chạy một số văn lệnh đặc biệt để thao tác phần mềm OpenOffice.org trong nhiều trường hợp thường gặp. Kết quả là một số tập tin kết thúc bằng <tt>.res</tt> nằm trong thư mục <tt>logs</tt> được tạo trên đĩa của bạn.
  
Việc này có thể mất nhiều giờ và chiếm nhiều tài nguyên nên khuyên bạn khởi chạy trước khi rời máy tính, v.d. để đi ngủ.
+
Việc này có thể mất nhiều giờ và chiếm nhiều tài nguyên nên khuyên bạn khởi chạy trước khi rời máy tính, v.d. để đi ngủ.
  
 
<h3>Trên Windows XP</h3>
 
<h3>Trên Windows XP</h3>
  
<i>Khuyên bạn tạo một người dùng mới (người dùng thử) để chạy công cụ testtool, mà có thể ghi đè lên thiết lập OpenOffice.org của bạn. Không thì nén thư mục</i> <tt>C:\Document and Settings\<tên_người_dùng>\Application Data\OpenOffice.org2</tt> <i>và để vào thư mục khác. Sau khi chạy testtool, giải nén và để vào thư mục gốc, ghi đè lên thiết lập của testtool.</i>
+
<i>Khuyên bạn tạo một người dùng mới (người dùng thử) để chạy công cụ testtool, mà có thể ghi đè lên thiết lập OpenOffice.org của bạn. Không thì nén thư mục</i> <tt>C:\Document and Settings\<tên_người_dùng>\Application Data\OpenOffice.org2</tt> <i>và để vào thư mục khác. Sau khi chạy testtool, giải nén và để vào thư mục gốc, ghi đè lên thiết lập của testtool.</i>
 
<br>
 
<br>
 
<br>
 
<br>
Line 19: Line 17:
 
<br>
 
<br>
 
<br>
 
<br>
<b> 2. Thiết lập hệ thống: cần phải ngăn cản con chuột di chuyển, tắt bộ bảo vệ màn hình, tắt chế độ ngủ.</b>
+
<b> 2. Thiết lập hệ thống: cần phải ngăn cản con chuột di chuyển, tắt bộ bảo vệ màn hình, tắt chế độ ngủ.</b>
  
 
<ol type="a">
 
<ol type="a">
<li>Hiện mọi tập tin và thư mục</li>
+
<li>Hiện mọi tập tin và thư mục</li>
 
<ul>
 
<ul>
 
<li><tt>Explorer > Tool > Folder > Show > Files and Folders</tt></li>
 
<li><tt>Explorer > Tool > Folder > Show > Files and Folders</tt></li>
<li>Bật tùy chọn <tt>Show All files and folders</tt></li>
+
<li>Bật tùy chọn <tt>Show All files and folders</tt></li>
 
</ul>
 
</ul>
 
<br>
 
<br>
Line 33: Line 31:
 
</ul>
 
</ul>
 
<br>
 
<br>
<li>Tắt khả năng tiết kiệm điện năng</li>
+
<li>Tắt khả năng tiết kiệm điện năng</li>
 
<ul>
 
<ul>
 
<li>tắt mọi giá trị</li>
 
<li>tắt mọi giá trị</li>
Line 39: Line 37:
 
</ol>
 
</ol>
 
<br>
 
<br>
<b>3. Tải về và cài đặt OpenOffice.org nếu chưa</b>
+
<b>3. Tải về và cài đặt OpenOffice.org nếu chưa</b>
 
<ul>
 
<ul>
 
<li>http://vi.openoffice.org/about-downloads.html</li>
 
<li>http://vi.openoffice.org/about-downloads.html</li>
Line 49: Line 47:
 
</ul>
 
</ul>
 
<br>
 
<br>
<b>5. Sửa tập tin</b> 
+
<b>5. Sửa tập tin</b>  
  
 
<tt>C:\Document and Settings\<tên_người_dùng>\Application Data\testtool.ini</tt>
 
<tt>C:\Document and Settings\<tên_người_dùng>\Application Data\testtool.ini</tt>
 
<ul>
 
<ul>
<li>Kiểm tra tập tin này chứa những mục bên dưới; không thì sửa:</li>
+
<li>Kiểm tra tập tin này chứa những mục bên dưới; không thì sửa:</li>
  
 
<pre>
 
<pre>
Line 124: Line 122:
 
<b>6. Cài đặt testtool:</b>
 
<b>6. Cài đặt testtool:</b>
 
<ul>
 
<ul>
<li>Giải nén kho <tt>qatesttool_ooo201_20062311.tgz</tt> vào thư mục <tt>C:\work\qa</tt>. Kết quả là cây <tt>C:\work/work/qa/testtool ...</tt>.</li>
+
<li>Giải nén kho <tt>qatesttool_ooo201_20062311.tgz</tt> vào thư mục <tt>C:\work\qa</tt>. Kết quả là cây <tt>C:\work/work/qa/testtool ...</tt>.</li>
 
</ul>
 
</ul>
 
<br>
 
<br>
<b>7. Đắp vá (sửa) tập tin</b> <tt>ooo_releasetests.bat</tt> <b>trong thư mục testtool:</b>
+
<b>7. Đắp vá (sửa) tập tin</b> <tt>ooo_releasetests.bat</tt> <b>trong thư mục testtool:</b>
 
<pre>
 
<pre>
 
C:\work\qa\qatesttool\script\win32\ooo_relesetests.bat
 
C:\work\qa\qatesttool\script\win32\ooo_relesetests.bat
--- qa/qatesttool/script/win32/ooo_releasetests.bat        Mon Oct 16 20:22:45 2006
+
--- qa/qatesttool/script/win32/ooo_releasetests.bat        Mon Oct 16 20:22:45 2006
+++ qa/qatesttool/script/win32/ooo_releasetests.bat        Sun May 28 19:34:33 2006
+
+++ qa/qatesttool/script/win32/ooo_releasetests.bat        Sun May 28 19:34:33 2006
 
@@ -59,10 +59,10 @@
 
@@ -59,10 +59,10 @@
  
 rem đặt vị trí của TestTool
+
rem đặt vị trí của TestTool
 rem (đường dẫn đầu đủ gồm tập tin chạy được 'testtool')
+
rem (đường dẫn đầu đủ gồm tập tin chạy được 'testtool')
 
-set tool="C:\qatesttool\bin\win32\testtool.exe"
 
-set tool="C:\qatesttool\bin\win32\testtool.exe"
 
+set tool="C:\Program Files\OpenOffice.org 2.1\program\testtool.exe"
 
+set tool="C:\Program Files\OpenOffice.org 2.1\program\testtool.exe"
  
 rem đặt đường dẫn đến thư mục chứa thư mục 'qatesttool'
+
rem đặt đường dẫn đến thư mục chứa thư mục 'qatesttool'
 
-set work="C:\qatesttool\scripts"
 
-set work="C:\qatesttool\scripts"
 
+set work="C:\work\qa"
 
+set work="C:\work\qa"
  
 %tool% -run %work%\qatesttool\framework\first\first.bas
+
%tool% -run %work%\qatesttool\framework\first\first.bas
 %tool% -run %work%\qatesttool\global\tools\closeoffice.bas
+
%tool% -run %work%\qatesttool\global\tools\closeoffice.bas
 
</pre>
 
</pre>
 
<br>
 
<br>
Line 151: Line 149:
 
<li>Chuẩn bị</li>
 
<li>Chuẩn bị</li>
 
<ul>
 
<ul>
<li>Kiểm tra xem Quick Start (khởi chạy nhanh) hiện thời không hoạt động (không nên có biểu tượng chim mòng biển nhỏ nằm ở góc phải bên dưới màn hình)</li>
+
<li>Kiểm tra xem Quick Start (khởi chạy nhanh) hiện thời không hoạt động (không nên có biểu tượng chim mòng biển nhỏ nằm ở góc phải bên dưới màn hình)</li>
<li>Gỡ bỏ tập tin <tt>C:\work\qa\qatesttool\errorlogs\*res</tt> (bất cứ tập tin kết thúc bằng <tt>.res</tt> trong thư mục đó) nếu có</li>
+
<li>Gỡ bỏ tập tin <tt>C:\work\qa\qatesttool\errorlogs\*res</tt> (bất cứ tập tin kết thúc bằng <tt>.res</tt> trong thư mục đó) nếu có</li>
 
<li>Gỡ bỏ <tt>C:\Document and Settings\<tên_người_dùng>\Application Data\OpenOffice.org2</tt> (nếu có)</li>
 
<li>Gỡ bỏ <tt>C:\Document and Settings\<tên_người_dùng>\Application Data\OpenOffice.org2</tt> (nếu có)</li>
 
</ul>
 
</ul>
 
<br>
 
<br>
<li>Thử ra testtool thật chạy, bằng cách nhấn đôi vào tập tin:</li>
+
<li>Thử ra testtool thật chạy, bằng cách nhấn đôi vào tập tin:</li>
 
<ul>
 
<ul>
 
<tt>C:\work\qa\qatesttool\framework\first\first.bas</tt>
 
<tt>C:\work\qa\qatesttool\framework\first\first.bas</tt>
 
</ul>
 
</ul>
 
<br>
 
<br>
<li>Văn lệnh thứ nhất này chạy được thì có thể khởi chạy toàn bộ testtool. Không thì thông báo cho hộp thư chung: xem điểm 9.</li>
+
<li>Văn lệnh thứ nhất này chạy được thì có thể khởi chạy toàn bộ testtool. Không thì thông báo cho hộp thư chung: xem điểm 9.</li>
 
<br>
 
<br>
<li>Để khởi chạy testool, khi bạn sẵn sàng:</li>
+
<li>Để khởi chạy testool, khi bạn sẵn sàng:</li>
 
<ul>
 
<ul>
<li>Nhấn đôi vào tập tin <tt>C:\work\qa\qatesttool\script\win32\ooo_releasetests.bat</tt>.</li>
+
<li>Nhấn đôi vào tập tin <tt>C:\work\qa\qatesttool\script\win32\ooo_releasetests.bat</tt>.</li>
 
</ul>
 
</ul>
 
</ol>
 
</ol>
Line 171: Line 169:
 
<b>8. Cảnh báo của Windows</b>
 
<b>8. Cảnh báo của Windows</b>
  
Khi khởi chạy testtool, nếu Windows hiển thị cảnh báo:
+
Khi khởi chạy testtool, nếu Windows hiển thị cảnh báo:
 
<pre>
 
<pre>
 
Important warning of Windows Security.
 
Important warning of Windows Security.
Line 180: Line 178:
 
</pre>
 
</pre>
  
bạn lờ đi. Không muốn chặn chạy chương trình OpenOffice.org. ;)
+
bạn lờ đi. Không muốn chặn chạy chương trình OpenOffice.org. ;)
 
<br>
 
<br>
 
<br>
 
<br>
Line 194: Line 192:
 
<pre>
 
<pre>
 
                               lỗi | cảnh báo | cảnh báo trong khi khởi chạy
 
                               lỗi | cảnh báo | cảnh báo trong khi khởi chạy
b_updt.res                  0      0     0 
+
b_updt.res                  0      0    0  
c_updt.res                  0      2     0
+
c_updt.res                  0      2     0
ch_updt.res                 0      0     0 
+
ch_updt.res                 0      0    0  
d_updt.res                  1      1     0
+
d_updt.res                  1     1    0
f_updt_help.res             0      0     0 
+
f_updt_help.res             0      0    0  
f_updt_pkgmgr.res           0      0     0
+
f_updt_pkgmgr.res           0     0    0
f_updt_spadmin.res          0      0     0
+
f_updt_spadmin.res          0     0    0
f_updt_templates.res        0      4     0
+
f_updt_templates.res        0      4     0
f_updt_windowfuncs.res      0      0     0 
+
f_updt_windowfuncs.res      0      0    0  
first.res                   0      0     0
+
first.res                   0      0     0
gallery.res                 1      5     0
+
gallery.res                 1      5     0
i_updt_1.res                0      0     0
+
i_updt_1.res                0     0    0
i_updt_2.res                1      1     0
+
i_updt_2.res                1      1     0
m_updt.res                  0      0     0
+
m_updt.res                  0     0    0
ma_updt.res                 0      0     0
+
ma_updt.res                 0      0     0
oasis_graphics_update.res   0      0     0
+
oasis_graphics_update.res   0     0    0
topten.res                  0      0     0
+
topten.res                  0      0     0
w_updt.res                  0      0     0
+
w_updt.res                  0     0    0
ww_updt.res                 0      0     0
+
ww_updt.res                 0     0    0
xforms_updt.res             0      0     0
+
xforms_updt.res             0      0     0
 
</pre>
 
</pre>
 
<ul>
 
<ul>
<li>Nén thư mục <tt>logs</tt> chứa các tập tin <tt>.res</tt>.</li>
+
<li>Nén thư mục <tt>logs</tt> chứa các tập tin <tt>.res</tt>.</li>
  
<li>Gửi thư chứa bảng kết quả (như trên) và kho nén chứa các tập tin <tt>.res</tt> (hay liên kết tới kho này lên Mạng) cho [mailto:%63%6c%79%74%69%65%40%72%69%76%65%72%6c%61%6e%64%2e%6e%65%74%2e%61%75 Clytie].</li>
+
<li>Gửi thư chứa bảng kết quả (như trên) và kho nén chứa các tập tin <tt>.res</tt> (hay liên kết tới kho này lên Mạng) cho [mailto:%63%6c%79%74%69%65%40%72%69%76%65%72%6c%61%6e%64%2e%6e%65%74%2e%61%75 Clytie].</li>
 
</ul>
 
</ul>
 
<br>
 
<br>
<b>Cám ơn bạn đã giúp đỡ thử ra OpenOffice.org Việt. :)</b>
+
<b>Cám ơn bạn đã giúp đỡ thử ra OpenOffice.org Việt. :)</b>
 
<br>
 
<br>
 
<br>
 
<br>
Line 230: Line 228:
 
<li>[[Testtool_FD6_vi|Testtool trên Fedora Core 6]]</li>
 
<li>[[Testtool_FD6_vi|Testtool trên Fedora Core 6]]</li>
 
</ul>
 
</ul>
 +
[[Category:VI]]

Latest revision as of 21:06, 24 March 2010

Tiến trình bảo đảm mức chất lượng (QA) của OpenOffice.org

Chạy công cụ tự động testtool

Dựa vào thư điện tử của Nakata Maho.

testtool là một công cụ tự động chạy trong nền. Nó chạy một số văn lệnh đặc biệt để thao tác phần mềm OpenOffice.org trong nhiều trường hợp thường gặp. Kết quả là một số tập tin kết thúc bằng .res nằm trong thư mục logs được tạo trên đĩa của bạn.

Việc này có thể mất nhiều giờ và chiếm nhiều tài nguyên nên khuyên bạn khởi chạy trước khi rời máy tính, v.d. để đi ngủ.

Trên Windows XP

Khuyên bạn tạo một người dùng mới (người dùng thử) để chạy công cụ testtool, mà có thể ghi đè lên thiết lập OpenOffice.org của bạn. Không thì nén thư mục C:\Document and Settings\<tên_người_dùng>\Application Data\OpenOffice.org2 và để vào thư mục khác. Sau khi chạy testtool, giải nén và để vào thư mục gốc, ghi đè lên thiết lập của testtool.

1. Kiểm tra hệ điều hành là hiện thời; cập nhật nếu cần.

2. Thiết lập hệ thống: cần phải ngăn cản con chuột di chuyển, tắt bộ bảo vệ màn hình, tắt chế độ ngủ.

  1. Hiện mọi tập tin và thư mục
    • Explorer > Tool > Folder > Show > Files and Folders
    • Bật tùy chọn Show All files and folders


  2. Tắt bộ bảo màn hình
    • Control Panel > Display > Choose screensaver > Screensaver > None


  3. Tắt khả năng tiết kiệm điện năng
    • tắt mọi giá trị


3. Tải về và cài đặt OpenOffice.org nếu chưa


4. Tải về testtool


5. Sửa tập tin

C:\Document and Settings\<tên_người_dùng>\Application Data\testtool.ini

  • Kiểm tra tập tin này chứa những mục bên dưới; không thì sửa:
  • [Misc]
    ServerTimeout=100000
    StopOnSyntaxError=0
    AutoReload=0
    AutoSave=0
    CurrentProfile=_profile_testtool
    ScriptFontName=Courier
    ScriptFontStyle=normal
    ScriptFontSize=12
    
    [Path]
    BaseDir=
    LogBaseDir=
    HIDDir=
    
    [GUI Platform]
    Current=501
    All=501
    
    [WinGeom]
    WinParams=228,124,802,620;1;0,0,0,0;
    
    [OooProgramDir]
    Current=C:\Program Files\OpenOffice.org 2.1
    All=C:\Program Files\OpenOffice.org 2.1
    
    [_profile_testtool]
    LogBaseDir=C:\work\qa\qatesttool\errorlog
    BaseDir=C:\work\qa\qatesttool
    HIDDir=C:\work\qa\qatesttool\global\hid
    AutoReload=0
    AutoSave=0
    StopOnSyntaxError=0
    *.bas=C:\work\qa\qatesttool\framework\first
    
    [LRU]
    MaxLRU=4
    LRU1=C:\work\qa\qatesttool\framework\first\first.bas
    
    [Communication]
    Host=localhost
    TTPort=12479
    UnoPort=10241
    
    [Crashreporter]
    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
    

    và lưu lại.


6. Cài đặt testtool:

  • Giải nén kho qatesttool_ooo201_20062311.tgz vào thư mục C:\work\qa. Kết quả là cây C:\work/work/qa/testtool ....


7. Đắp vá (sửa) tập tin ooo_releasetests.bat trong thư mục testtool:

C:\work\qa\qatesttool\script\win32\ooo_relesetests.bat
--- qa/qatesttool/script/win32/ooo_releasetests.bat        Mon Oct 16 20:22:45 2006
+++ qa/qatesttool/script/win32/ooo_releasetests.bat        Sun May 28 19:34:33 2006
@@ -59,10 +59,10 @@

 rem đặt vị trí của TestTool
 rem (đường dẫn đầu đủ gồm tập tin chạy được 'testtool')
-set tool="C:\qatesttool\bin\win32\testtool.exe"
+set tool="C:\Program Files\OpenOffice.org 2.1\program\testtool.exe"

 rem đặt đường dẫn đến thư mục chứa thư mục '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


7. QAtest

  1. Chuẩn bị
    • Kiểm tra xem Quick Start (khởi chạy nhanh) hiện thời không hoạt động (không nên có biểu tượng chim mòng biển nhỏ nằm ở góc phải bên dưới màn hình)
    • Gỡ bỏ tập tin C:\work\qa\qatesttool\errorlogs\*res (bất cứ tập tin kết thúc bằng .res trong thư mục đó) nếu có
    • Gỡ bỏ C:\Document and Settings\<tên_người_dùng>\Application Data\OpenOffice.org2 (nếu có)


  2. Thử ra testtool thật chạy, bằng cách nhấn đôi vào tập tin:
    • C:\work\qa\qatesttool\framework\first\first.bas


  3. Văn lệnh thứ nhất này chạy được thì có thể khởi chạy toàn bộ testtool. Không thì thông báo cho hộp thư chung: xem điểm 9.

  4. Để khởi chạy testool, khi bạn sẵn sàng:
    • Nhấn đôi vào tập tin C:\work\qa\qatesttool\script\win32\ooo_releasetests.bat.


8. Cảnh báo của Windows

Khi khởi chạy testtool, nếu Windows hiển thị cảnh báo:

Important warning of Windows Security.
To protect this computer, Windows firewall blocks some
functions. Do you block this program?''
Name(N): OpenOffice.org 2.1
Producer(P): OpenOffice.org'

bạn lờ đi. Không muốn chặn chạy chương trình OpenOffice.org. ;)

9. Lỗi chạy

Gặp lỗi thì thông báo cho hộp thư chung l10n@vi.openoffice.org hay users@vi.openoffice.org và chúng ta sẽ giúp đỡ.

10. Kết quả

Công cụ testtool đã chạy xong nên hiển thị màn hình kết quả, v.d.

                               lỗi | cảnh báo | cảnh báo trong khi khởi chạy
b_updt.res                  0      0     0 
c_updt.res                  0      2     0
ch_updt.res                 0      0     0 
d_updt.res                  1      1     0
f_updt_help.res             0      0     0 
f_updt_pkgmgr.res           0      0     0
f_updt_spadmin.res          0      0     0
f_updt_templates.res        0      4     0
f_updt_windowfuncs.res      0      0     0 
first.res                   0      0     0
gallery.res                 1      5     0
i_updt_1.res                0      0     0
i_updt_2.res                1      1     0
m_updt.res                  0      0     0
ma_updt.res                 0      0     0
oasis_graphics_update.res   0      0     0
topten.res                  0      0     0
w_updt.res                  0      0     0
ww_updt.res                 0      0     0
xforms_updt.res             0      0     0
  • Nén thư mục logs chứa các tập tin .res.
  • Gửi thư chứa bảng kết quả (như trên) và kho nén chứa các tập tin .res (hay liên kết tới kho này lên Mạng) cho Clytie.


Cám ơn bạn đã giúp đỡ thử ra OpenOffice.org Việt. :)

Xem cũng:

Personal tools