1 |
*** Settings *** |
2 |
Documentation Actions spécifiques aux instructions. |
3 |
|
4 |
*** Keywords *** |
5 |
Ouvrir la bible du complément d'instruction n° |
6 |
[Arguments] ${numero_complement} |
7 |
|
8 |
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=a[onclick^="bible(${numero_complement});"] |
9 |
|
10 |
Ajout automatique de complément(s) d'instruction |
11 |
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=a[onclick^="bible_auto();"] |
12 |
|
13 |
Ajouter une instruction au DI |
14 |
[Arguments] ${di} ${evenement} ${date_evenement}=null |
15 |
|
16 |
Depuis l'onglet instruction du dossier d'instruction ${di} |
17 |
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element action-soustab-instruction-corner-ajouter |
18 |
Saisir instruction ${evenement} ${date_evenement} |
19 |
Click On Submit Button In Subform |
20 |
Valid Message Should Contain In Subform Vos modifications ont bien été enregistrées. |
21 |
|
22 |
Ajouter une instruction au DI et la finaliser |
23 |
[Arguments] ${di} ${evenement} ${date_evenement}=null |
24 |
|
25 |
Depuis l'onglet instruction du dossier d'instruction ${di} |
26 |
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element action-soustab-instruction-corner-ajouter |
27 |
Saisir instruction ${evenement} ${date_evenement} |
28 |
Click On Submit Button In Subform |
29 |
Valid Message Should Contain In Subform Vos modifications ont bien été enregistrées. |
30 |
Click On Back Button In Subform |
31 |
Click On Link ${evenement} |
32 |
Click On SubForm Portlet Action instruction finaliser |
33 |
|
34 |
|
35 |
Saisir instruction |
36 |
[Arguments] ${evenement}=null ${date_evenement}=null |
37 |
|
38 |
Wait Until Element Is Visible evenement |
39 |
# On sélectionne l'évènement, avec utilisation de doubles quotes pour que |
40 |
# les évènements contenant une apostrophe ne fassent pas bug |
41 |
Run Keyword If "${evenement}" != "null" Select From List By Label evenement ${evenement} |
42 |
# On saisit la date |
43 |
Run Keyword If "${date_evenement}" != "null" Input Text date_evenement ${date_evenement} |
44 |
|
45 |
Depuis l'instruction du dossier d'instruction |
46 |
|
47 |
[Documentation] Permet d'accéder à la fiche de l'instruction du dossier |
48 |
... d'instruction. |
49 |
|
50 |
[Arguments] ${dossier_instruction} ${instruction} |
51 |
|
52 |
Depuis l'onglet instruction du dossier d'instruction ${dossier_instruction} |
53 |
# On clique sur l'instruction |
54 |
Click On Link ${instruction} |
55 |
|
56 |
Supprimer l'instruction |
57 |
[Arguments] ${di} ${libelle} |
58 |
|
59 |
Depuis l'instruction du dossier d'instruction ${di} ${libelle} |
60 |
# On clique sur l'action modifier |
61 |
Click On SubForm Portlet Action instruction supprimer |
62 |
# On valide |
63 |
Click On Submit Button In Subform |
64 |
# Vérification qu'il n'y a aucune erreur |
65 |
Page Should Not Contain Errors |
66 |
# On vérifie le message de validation |
67 |
Valid Message Should Contain La suppression a été correctement effectuée. |
68 |
|
69 |
|
70 |
Récupérer le code barres de l'instruction |
71 |
[Arguments] ${di} ${libelle} |
72 |
|
73 |
Depuis l'instruction du dossier d'instruction ${di} ${libelle} |
74 |
${instruction} = Get Text css=.form-content #instruction |
75 |
${code_barres} = STR_PAD_LEFT ${instruction} 10 0 |
76 |
${code_barres} = Catenate 11${code_barres} |
77 |
|
78 |
[Return] ${code_barres} |
79 |
|