2.8.0 • Published 8 years ago

testx-stomp-keywords v2.8.0

Weekly downloads
17
License
ISC
Repository
github
Last release
8 years ago

testx-stomp-keywords

A library that extends testx with keywords for publishing to stomp. This library is packaged as a npm package.

How does it work

From the directory of the art code install the package as follows:

npm install testx-stomp-keywords --save

After installing the package add the keywords to your protractor config file as follows:

for testx 0.x

testx.addKeywords(require('testx-stomp-keywords'))

for testx 1.x

testx.keywords.add(require('testx-stomp-keywords'))

Please remember that this is an asynchronous protocol: subscriptions and publications may not be handled by the server in the expected order!

Keywords

KeywordArgument nameArgument valueDescriptionSupports repeating arguments
publish msgpublishes a message to the topic
hostThe host of the topicNo
topicThe name of the topic to publish toNo
bodyThe text of the message that will be publishedNo
portThe port of the topic (default (61613)No
queue msgpublishes a message to the stomp-queue
hostThe host of the queueNo
queueThe name of the queue to publish toNo
bodyThe text of the message that will be publishedNo
portThe port of the queue (default (61613)No
check msg countChecks if the number of received messages (from the moment of subscribing to the topic) equals 'count'
topicThe name of the topicNo
countThe count to check againstNo
assert msgAsserts if a certain assertion value is present in the message specified by the id value. It uses jsonpath-plus to determine the path
topicThe name of the topicNo
id_pathPath to the message identifierNo
id_valueThe value of the message identifierNo
assert_pathThe path to the assertion valueNo
assert_valueThe value to assert againstNo
assert msg matchesAsserts if a certain assertion value matches a value in the message specified by the id value. It uses jsonpath-plus to determine the path
topicThe name of the topicNo
id_pathPath to the message identifierNo
id_valueThe value of the message identifierNo
assert_pathThe path to the assertion valueNo
assert_valueThe value to match againstNo
subscribe to topicsubscribe to a topic to receive messages
hostThe host of the topicNo
topicThe name of the topic to subscribe toNo
portThe port of the topic (default (61613)No
flush topicClears the list of received messages
topicThe name of the topicNo

'publish msg': function (args) { publish(args.host, args.topic, args.body, args.port = 61613, 'topic'); }, 'queue msg': function (args) { publish(args.host, args.queue, args.body, args.port = 61613, 'queue'); }, 'check msg count': checkMsgCount, 'subscribe to topic': subscribe, 'flush topic':flush

2.8.0

8 years ago

2.7.0

8 years ago

2.6.0

8 years ago

2.5.0

8 years ago

2.4.0

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago