Untitled
unknown
plain_text
4 years ago
3.1 kB
10
Indexable
*** Settings ***
Library Process
Library RemoteSwingLibrary
Library String
*** Variables ***
${LIBELLE_ATTENDU_1_1} Connexion au chat @
${LIBELLE_ATTENDU_1_2} * Taper /h pour avoir de l'aide sur les commandes du chat.
${LIBELLE_ATTENDU_1_3} * Sortie du chat.
*** Keywords ***
Execution Camix
Start Process java -Duser.language\=fr -Duser.country\=FR -jar SUT/Camix-0.4.3.jar alias=Camix
Sleep 2s
Arrêt Camix
Terminate Process Camix
Sleep 2s
Arrêt Felix
Switch To Application Felix
System Exit
L’utilisateur lance l’execution du composant Felix
Start Application Felix java -Duser.language=fr -Duser.country=FR -jar SUT/Felix-0.4.3.jar
#... stdout=/dev/null stderr=/dev/null
Sleep 2s
La fenetre de connexion s'affiche
switch to application Felix
Select Window Connexion
L'utilisateur demande à se connecter
Push Button Connecter
Felix affiche un message de connexion
[Arguments] ${ip} ${port}
Assert Information ${LIBELLE_ATTENDU_1_1}${ip}:${port}
Felix affiche un message d'erreur de connexion
[Arguments] ${ip} ${port}
Assert Information ${LIBELLE_ATTENDU_1_1}${ip}:${port}
Felix ferme la vue connexion
Wait Until Keyword Succeeds 2x 500ms Window Should Not Be Open Connexion
Felix affiche la vue chat
Window Should Be Open Chat
Select Window Chat
Felix ferme la vue chat
Window Should Not Be Open Chat
Felix affiche un message d'acceuil dans le chat
${value} = Call Component Method Messages getText 0 58
Should Be Equal As Strings ${value} ${LIBELLE_ATTENDU_1_2}
Felix affiche un message de sortie dans le chat
${value} = Call Component Method Messages getText 60 17
Should Be Equal As Strings ${value} ${LIBELLE_ATTENDU_1_3}
L'utilisateur change l'ip
List Windows
List Components In Context
[Arguments] ${ip}
Insert Into Text Field IP ${ip}
L'utilisateur change le port
[Arguments] ${port}
Focus To Component Port
Insert Into Text Field Port ${port}
Focus To Component IP
Saisir /q
List Windows
List Components In Context
Focus To Component Saisie
Type Into Text Field Saisie /q\n
Assert Libelle
[Arguments] ${libelle}
Wait Until Keyword Succeeds 2x 500ms Assert Text Field Value FENETRE_CONNEXION_MESSAGE_CONNEXION ${libelle}
Assert Information
[Arguments] ${libelle}
Wait Until Keyword Succeeds 2x 500ms Assert Text Field Value Information ${libelle}
Assert Text Field Value
[Arguments] ${textfield} ${expectedValue}
${value} = Get Text Field Value ${textfield}
Should Be Equal As Strings ${value} ${expectedValue}
Assert Messages Value
[Arguments] ${textfield} ${expectedValue}
${value} = Call Component Method ${textfield} getText 0 60
Should Be Equal As Strings ${value} ${expectedValue}
Editor is loading...