Issue 75276 - enhancements for "metascript" on windows
Summary: enhancements for "metascript" on windows
Status: CLOSED FIXED
Alias: None
Product: QA
Classification: Unclassified
Component: testscripts (show other issues)
Version: current
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: andreschnabel
QA Contact: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-10 16:47 UTC by andreschnabel
Modified: 2008-04-05 10:06 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
first attempt (5.03 KB, text/plain)
2007-03-10 16:48 UTC, andreschnabel
no flags Details
enhanced version that realy kills soffice processes (5.20 KB, text/plain)
2008-02-27 17:51 UTC, andreschnabel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andreschnabel 2007-03-10 16:47:53 UTC
The scripts to run multiple testscripts on windows are missing some
functionality that has been recently added to the unix scripts (see issue
71973). This task is created to enhance windows scripts as well.

relevant enhancements:
- Support for Windows98
- separated list of tests to run from "code script"
- try to use known settings .. e.g.:
  - location of testtool should be taken from OOoProgramDir setting in
testtool.ini
  - location of testscripts should be taken from testtool.ini
- implement a generic "kill"
Comment 1 andreschnabel 2007-03-10 16:48:44 UTC
Created attachment 43638 [details]
first attempt
Comment 2 andreschnabel 2007-03-10 16:53:48 UTC
Comments to the first attachment:
- the script uses Windows Scripting Host 5.6 / VBS
- script has been tested on WinXP and Win98SE (IE 6 installed)
- the script runs in Commandline Mode only so use cscript.exe !
- reading values from testtool.ini has not been implemented yet

to run the script open a command line, navigate to the path of the script and
start the script by:
cscript.exe run_tests.vbs <..\first_topten.lst

The testtool environment has to be set up correctly before running the script.
Comment 3 khirano 2007-03-10 19:35:48 UTC
I tried on my Windows Me machine.

C:\WINDOWS\COMMAND>cscript.exe run_tests.vbs <
c:\qa\qatesttool\script\first_topten.lst

Results:
---------
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

****************************************************
************ STARTING ************
****************************************************
using scripts from C:\qa\qatesttool\
using testtool from C:\Program Files\OpenOffice.org 2.2\program\testtool.exe
 
****************************************************
running framework/first/first.bas
 Successfully started
 trying to kill the previous office process
 
****************************************************
running framework/first/topten.bas
 Successfully started
 trying to kill the previous office process
Duration:4sec 

----------------

As you see, *.bas didn't run.
Comment 4 andreschnabel 2008-02-04 19:01:46 UTC
set os to winXP - i cannot get this working on Win9x, as this behaves different
is several ways and has not all the tools we would need.
Comment 5 andreschnabel 2008-02-27 17:51:15 UTC
Created attachment 51760 [details]
enhanced version that realy kills soffice processes
Comment 6 andreschnabel 2008-04-05 10:04:52 UTC
script has been submitted to cvs -> fixed
Comment 7 andreschnabel 2008-04-05 10:06:18 UTC
closed