[ MENU ]

A

activatetext activatewin activatewinpartialname addlogger appendtext

B

bindtext blackoutregion

C

calendar calendarview capturetofile check checkbox checkmenuitem checkrow classpstats click closeappwindow combobox comboselect comboselectindex comparetextproperty containstextproperty copytext cuttext

D

decrease deletetext doesmenuitemexist doesrowexist doubleclick doubleclickrow

E

embeddedcomponent enterstring expandtablecell

G

general generatekeyevent generatemouseevent getactivewin getapplist getcellvalue getcharcount getcursorposition geteventcount getlabel getlabelatindex getobjectinfo getobjectlist getobjectproperty getpanelchildcount getrowcount getslidervalue getstatusbartext gettabcount gettablerowindex gettextproperty gettextvalue gettreetablerowindex getvalue getwindowlist grabfocus guiexist guitimeout

H

hasstate hidelist

I

icon imagecapture imagecompare imaging increase index initappmap inserttext invokemenu istextstateenabled

L

label launchapp layeredpane ldtplog list listsubmenus log logging ltfx

M

main menucheck menuitem menuuncheck mouseleftclick mousemove mouserightclick

O

objectexist objtimeout onedown oneleft oneright oneup onwindowcreate

P

pages pagetablist panel partialexists pastetext press processstatistics pushbutton

R

radiobutton radiomenuitem reinitldtp releasecontext remap removecallback rightclick

S

scrollbar scrolldown scrollleft scrollright scrollup selectcalendardate selectevent selecteventindex selectindex selectitem selectlabelspanelbyname selectlastrow selectmenuitem selectpanel selectpanelname selectrow selectrowindex selectrowpartialmatch selecttab selecttabindex selecttextbyindexandregion selecttextbyname selecttextitem setcellvalue setcontext setcursorposition setlocale setloglevel setmax setmin settablecell settextvalue setvalue showlist singleclickrow slider sortcolumn sortcolumnindex spinbutton startldtplog startlog stateenabled statusbar stopldtplog stoplog stopscriptengine

T

table text todo togglebutton toolbar tree treetable typekey

U

uncheck uncheckrow

V

verifybuttoncount verifycheck verifycheckrow verifydropdown verifyeventexist verifyhidelist verifymenucheck verifymenuuncheck verifypartialmatch verifypartialtablecell verifypushbutton verifyscrollbar verifyscrollbarhorizontal verifyscrollbarvertical verifyselect verifysettext verifysetvalue verifyshowlist verifyslider verifysliderhorizontal verifyslidervertical verifystatusbar verifystatusbarvisible verifytablecell verifytoggled verifyuncheck verifyuncheckrow verifyvisiblebuttoncount

W

wait waittillguiexist waittillguinotexist waitwinname waitwinpartialname window windowexists
Ciekawe strony
statsnoclegi a dojazd do zakopanego
pensjonaty
klasyfikacja
luftwaffe
jezyki bantu
port lotniczy
praszka
demokratyczna republika
james bond 007
projekty domów jednorodzinnych

Class pstats

Syntax

<Object> = pstats(<application name>, <time interval>)

<Object>.start()

<Object>.stop()

Description

This process when run gathers the Memory usage and CPU utilization of all the processes of a particular application at specific time interval.

Implementation

When this functionality is to be used in a python test script you need to create a new object for pstats class.

The arguments passed while instantiating this class are Application name and Time interval.

As soon as the <Object>.start() method is called in the test script, memory usage and CPU utilization of the application start getting logged into the ldtp log file.

When <Object>.stop is called the thread gathering the information stops.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtputils.py

Example

If I want the resource usage of all processes related to evolution to be logged every 2 seconds, the following statements need to be incorporated in the test script

xstats = pstats ('evolution', 2)

xstats.start ()

<Test Script>

xstats.stop()

Dependency

This functionality depends on the pystatgrab (http://www.i-scream.org/pystatgrab/) package. Make sure you have it installed before using this memory and CPU utilization gathering function in your ldtp test scripts.

Author:
Subodh Soni <subodhsoni@gmail.com>


Linux Desktop Testing Project