mardi 20 décembre 2016

Jasmin JavaScript test - wait for a function test to finish

I am trying out Jasmin to automate my JavaScript testing. I just can't find info about one thing (here are steps I want to do):

1) Login to a service. (returns SUCCESS or FAILED)

2) Establish a connection to a server. (returns SUCCESS or FAILED)

3) Make a test SIP call. (returns SUCCESS or FAILED)

Based on SUCCESS/FAILED, my Spec (scenario) fails or passes.

The problem in testing these 3 things: it takes time to do each, especially number 3. So far I have tried Jasmin and can'd figure out how to do a sequential tests like that, so each step (test) has to finish for next one to start. Maybe there is a better framework to do that? I am testing just JavasScript, not interface (buttons, text fields, etc.).

Regards. Yuriy.

Aucun commentaire:

Enregistrer un commentaire