escalus
escalus copied to clipboard
Exception in user creation via xmpp
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 ?
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.