Download presentation
Presentation is loading. Please wait.
Published byJessie Price Modified over 9 years ago
1
Component Interface Testing SciDAC Quarterly Report Argonne, IL William McLendon Ron Oldfield Sandia National Laboratories Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract DE-AC04-94AL85000.
2
Twisted Python Info Framework, written in Python for writing networked applications. Some Features: –web server –RDDB interface –Object broker –Asynchronous event handling –Distributed Applications http://www.twistedmatrix.com/
3
APItest v0.1.2 Overview Continuing work with APItest v0.1.2 –HTTP Interface development –Test Types Shell Script Extensability (define new types easily) –3rd party libraries Twisted Python http://www.effbot.org/ (elementtree)http://www.effbot.org/ Now available via Sandia FTP: –ftp://ftp.sandia.gov/outgoing/apitest/ftp://ftp.sandia.gov/outgoing/apitest/ –Posted in SciDAC notes
4
APItest 0.1.2 & Python Collaboration with Scott Jackson –Stderr/Stdout bug with python Popen3 Problem was when a script or program generated a lot of stderr and stdout. –deadlock! Twisted provides SpawnProcess() –Fixed deadlocking problem! –Asynchronous interface via Deferred() Required rewriting a lot of code to support asynchronous file operation mode. –APItest is better because of it! –More responsive http server, etc. Accounted for most of the work this Quarter.
5
Test Run Tracking & Grouping APItest v0.1.2 has better support for browsing test data within a ‘session’ –Browse test “Run” data Time stamped –Test Run Overview –Batches –Tests timestamps md5sum on test file Batch and Test data stored in an in-memory database but in XML file format. Writing out data to file should be available soon™.
6
sciptTest XML Example Multiline CDATA BUFFER <test name="timestamp1" type="script” minPctMatch="100" maxPctMatch="100" numReps="1" onMismatch="CONTINUE"> foreach i (1 2 3 4 5) set theDate = `date` echo "timestamp1 :${i}: $theDate” sleep 5 end.*timestamp1.* 0
7
Batch File XML Test batch file. <dep parent="shell/cmdTest1.apt" child="shell/cmdTest2.apt" ptype="TEST" ctype="TEST" />
8
Questions? Demo? ftp://ftp.sandia.gov/outgoing/apitest/
10
APItest Component Architecture Concept C bot Tests DB report generator APItest backup/ archival
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.