cawt use cases · cawt – com automation with tcl page 10 paul obermeier, [email protected] use...

14
CAWT COM Automation With Tcl Page 1 Paul Obermeier, [email protected] CAWT COM Automation With Tcl + = CAWT CAWT Use Cases European Tcl/Tk User Meeting 2015, Cologne

Upload: others

Post on 19-Mar-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 1

Paul Obermeier, [email protected]

CAWT – COM Automation With Tcl

+

= CAWT

CAWT Use Cases

European Tcl/Tk User Meeting 2015, Cologne

Page 2: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 2

Paul Obermeier, [email protected]

CAWT Use Cases – Contents

• CAWT Overview

• Architecture • History

• Use Cases@Home

• Use of CAWT in poApps • Use of CAWT to document itself

• Use Cases@Work

• Lazy man‘s documentation tool • Poor man‘s requirement tool

Page 3: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 3

Paul Obermeier, [email protected]

CAWT Overview – What it is good for?

High-level Tcl interface for scripting Windows applications having a COM interface:

• Excel

• Word

• PowerPoint

• Outlook

• Ocr

• GoogleEarth

• Matlab

• IExplorer

Note, that only Office modules Excel, Word and PowerPoint are in active development.

Page 4: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 4

Paul Obermeier, [email protected]

CAWT Overview – Architecture

Microsoft Office packages

Twapi Tcl Windows API extension

CawtCore Basic Automation

CawtExcel Microsoft Excel

CawtWord Microsoft Word

CawtEarth Google Earth

CawtOcr MS Document Imaging

CawtMatlab MathWorks Matlab

CawtExplorer MS Internet Explorer

CawtPpt Microsoft PowerPoint

CawtOutlook Microsoft Outlook

Page 5: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 5

Paul Obermeier, [email protected]

CAWT Overview - History

2008/09/11 TcomExcel 0.1 Use of Tcom for COM access. Support for Excel only.

...

2011/07/17 TcomOffice 0.4.0 New module TcomWord for Word automation.

...

2012/01/21 TcomOffice 0.5a3 Use Twapi for COM access instead of Tcom.

2012/07/08 EuroTcl 2012 Work-In-Progress Report.

2012/12/23 CAWT 1.0.0 Major rewrite using Twapi for COM access.

...

2014/03/30 Added SourceForge project for CAWT.

...

2015/03/31 CAWT 2.0.0 Namespaces ensembled. Office enumerations as strings.

Page 6: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 6

Paul Obermeier, [email protected]

Use Cases@Home – Handling of Tabular Data

Exchange of tabular data:

• Excel tables

• Word tables

• Tablelist

• Raw images

• Matlab MAT-files

• CSV files

• MediaWiki tables

• Wikit tables

• HTML tables

Page 7: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 7

Paul Obermeier, [email protected]

Use Cases@Home– poApps Image Viewer

Features using CAWT:

• Color count table to Excel

• Histogram to Excel

• Image to Excel as background cell colors.

Page 8: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 8

Paul Obermeier, [email protected]

Use Cases@Home – poApps Directory Diff

Features using CAWT:

• Comparison of Excel files.

• Comparison of Word files.

Page 9: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 9

Paul Obermeier, [email protected]

Use Cases@Home – poApps Presentation Manager

Manage PowerPoint presentations:

• Export presentations as preview images.

• Quick overview.

• Build new presentations from preview images.

Page 10: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 10

Paul Obermeier, [email protected]

Use Cases@Home – CAWT Document Generation

Output Tcl Scripts Input

CAWT Source Tcl Files

UserManual Template CawtManualTemplate.doc

Gen. UserManual Doc. genCawtDoc.tcl

User Manual CawtManual-VERSION.doc

User Manual CawtManual-VERSION.pdf

UserManual Pictures CawtFigures.ppt

CAWT Reference HTML Files

%VERSION%

%DATE%

%YEAR%

%FIGURE Figure-01%

%TABLE Excel%

%TABLE TestPrograms%

Page 11: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 11

Paul Obermeier, [email protected]

Use Cases@Work – Poor and Lazy man‘s tools

Goal: Fulfill minimal needed formalism for an internal project

Needed documents in Word with company specific formatting:

• Requirement specification.

• User Manual.

• Assessment instruction.

• Assessment protocol.

• Software Architecture.

• New feature

• New methods

• New tests

• New assessment with QA / CM

Page 12: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 12

Paul Obermeier, [email protected]

Use Cases@Work – Poor and Lazy man‘s tools

Output Tcl-Scripts Input

Gen. Specification Doc.

Doxygen Reference (HTML files)

Requirements List Excel

Specification Template Word

Specification Document Word

Assessment Template Word

Assessment Instruction Word Gen. Assessment Doc.

Report Template Word

Assessment Report Word

Execute Tests (RunAndCheck)

UserManual Template Word

Gen. UserManual Doc.

User Manual Word

User Manual PDF

UserManual Pictures PpwerPoint

Page 13: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 13

Paul Obermeier, [email protected]

Use Cases@Work – Poor and Lazy man‘s tools

Test Scripts

RunAndCheck

Test Output

Generate Report

Execute Test Case

Execute Test Suites Image files

Check Image

Check Test Results

Log files

CheckSystem.log

runTests.log

Log files

checkTests.log

checkTests.cawt

Assessment Report Word

Test Input

Check Criteria Tcl procedure calls

Report Template Word

Test Configurations Tcl procedure calls

Page 14: CAWT Use Cases · CAWT – COM Automation With Tcl Page 10 Paul Obermeier, paul@poSoft.de Use Cases@Home – CAWT Document Generation Input Tcl Scripts Output CAWT Source Tcl Files

CAWT – COM Automation With Tcl Page 14

Paul Obermeier, [email protected]

CAWT – COM Automation With Tcl

CAWT is available on SF and poSoft

European Tcl/Tk User Meeting 2015, Cologne

http://sourceforge.net/projects/cawt

http://www.poSoft.de