escalus icon indicating copy to clipboard operation
escalus copied to clipboard

Exception in user creation via xmpp

Open hamdijmii1992 opened this issue 9 years ago • 1 comments

I tried to create two user with

escalus:create_users(Config0, {by_name, [mike, geralt]}).

but I got this exception:

 exception error: no function clause matching escalus_users:'-create_users_via_xmpp/2-lc$^0/1-0-'({by_name,[mike,geralt]}) (src/escalus_users.erl, line 99)
     in function  escalus_users:create_users_via_xmpp/2 (src/escalus_users.erl, line 99)

What's the source of this exception please ?

hamdijmii1992 avatar Dec 20 '16 09:12 hamdijmii1992

Hi hamdijmii1992

This is not a valid call for this function. Please try escalus:create_users(Config0, escalus:get_users([mike, geralt])). escalus:create_users/2 requires a list of full user specs, that can be provided with escalus:get_users/1. Alternatively, you can provide these specs manually if necessary.

fen-pl avatar Dec 27 '16 05:12 fen-pl