TasCommand Class Reference

#include <ext/app/exttesttools/tasqtcommandmodel.h>

class TasCommand : public TasDomObject, public TasDomObject

TasCommand represents a single command to be sent to the application under testing.

Inherits from

Public Member Functions
TasCommand(QDomElement)
TasCommand(const TasCommand &)
~TasCommand()
voidaddApiParameter(const QString &, const QString &, const QString &)
QString apiParameter(const QString &)
QHash< QString, QString >getApiParameters()
QString name()
QString parameter(const QString &)
QString text()
Inherited Attributes
TasDomObject::mElement
Inherited Functions
TasDomObject::addChild(const QString &)
TasDomObject::addDomAttribute(const QString &,const QString &)
TasDomObject::domElement()const
TasDomObject::setText(const QString &)

Detailed Description

TasCommand contains the command to be executed and parameters needed for completing it. The TasCommander uses the values to send events to qApp.

Constructor & Destructor Documentation

TasCommand ( QDomElement )

TasCommand(QDomElementelement)

Constructor for TasCommand. Name is required.

TasCommand ( const TasCommand & )

TasCommand(const TasCommand &other)

~TasCommand ( )

~TasCommand()

Desstructor for TasCommand.

Member Function Documentation

addApiParameter ( const QString &, const QString &, const QString & )

voidaddApiParameter(const QString &name,
const QString &value,
const QString &type
)

apiParameter ( const QString & )

QString apiParameter(const QString &name)

Return a parameter for the value. The QString can be empty and should always be verified using QString::isEmpty

getApiParameters ( )

QHash< QString, QString >getApiParameters()const

name ( )

QString name()const

Returns the name of the command.

parameter ( const QString & )

QString parameter(const QString &name)

Return a parameter for the value. The QString can be empty and should always be verified using QString::isEmpty

text ( )

QString text()const

Returns the textual value for the command.