Comparison

spec/scansion/issue978.scs @ 9266:c5267f5fd6e6

spec/scansion: Add scansion scripts used for testing All past, except issue978-multi which fails randomly based on ordering of elements - this is a scansion issue to be resolved.
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Sep 2018 16:44:48 +0100
child 9291:329a670ae975
comparison
equal deleted inserted replaced
9265:585ef5c1b226 9266:c5267f5fd6e6
1 [Client] Romeo
2 jid: user@localhost
3 password: password
4
5 [Client] Juliet
6 jid: user2@localhost
7 password: password
8
9 -----
10
11 Romeo connects
12
13 Romeo sends:
14 <presence to="room@conference.localhost/Romeo">
15 <x xmlns="http://jabber.org/protocol/muc"/>
16 </presence>
17
18 Romeo receives:
19 <presence from='room@conference.localhost/Romeo'>
20 <x xmlns='http://jabber.org/protocol/muc#user'>
21 <status code='201'/>
22 <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
23 <status code='110'/>
24 </x>
25 </presence>
26
27 Romeo receives:
28 <message type='groupchat' from='room@conference.localhost'><subject/></message>
29
30 # Submit config form
31 Romeo sends:
32 <iq id='config1' to='room@conference.localhost' type='set'>
33 <query xmlns='http://jabber.org/protocol/muc#owner'>
34 <x xmlns='jabber:x:data' type='submit'>
35 <field var='FORM_TYPE'>
36 <value>http://jabber.org/protocol/muc#roomconfig</value>
37 </field>
38 <field var='muc#roomconfig_whois'>
39 <value>anyone</value>
40 </field>
41 </x>
42 </query>
43 </iq>
44
45 Romeo receives:
46 <iq id="config1" from="room@conference.localhost" type="result">
47 </iq>
48
49 # Juliet connects, and joins the room
50 Juliet connects
51
52 Juliet sends:
53 <presence to="room@conference.localhost/Juliet">
54 <x xmlns="http://jabber.org/protocol/muc"/>
55 </presence>
56
57 Juliet receives:
58 <presence from="room@conference.localhost/Romeo" />
59
60 Juliet receives:
61 <presence from="room@conference.localhost/Juliet" />
62
63 Juliet receives:
64 <message type='groupchat' from='room@conference.localhost'><subject/></message>
65
66 Romeo receives:
67 <presence from="room@conference.localhost/Juliet" />
68
69 Juliet sends:
70 <presence type='error' to='room@conference.localhost'>
71 <error type='cancel'>
72 <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
73 <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Test error</text>
74 </error>
75 </presence>
76
77 Romeo receives:
78 <presence type='unavailable' from='room@conference.localhost/Juliet'>
79 <status>Kicked: service unavailable: Test error</status>
80 <x xmlns='http://jabber.org/protocol/muc#user'>
81 <status code='333'/>
82 <item jid="${Juliet's full JID}" affiliation='none' role='none'/>
83 </x>
84 </presence>