File tree 4 files changed +66
-2
lines changed
test-plan/in-sprint/sprint-20
4 files changed +66
-2
lines changed Original file line number Diff line number Diff line change 54
54
with :
55
55
browser : chrome
56
56
command : | # EDITAR AQUÍ EL ARCHIVO SUITE A EJECUTAR:
57
- yarn file cypress/e2e/Tests/Widgets /GX-22346-Dropdown .cy.js
57
+ yarn file cypress/e2e/Tests/Elements /GX-23008-Upload-and-Download .cy.js
58
58
59
59
- name : ✅Import Test Results to Xray
60
60
if : always()
64
64
password : ${{secrets.XRAY_CLIENT_SECRET}}
65
65
testFormat : ' junit' # OPCIONES PARA CAMBIAR: 'junit' (para xml) o 'cucumber' (para json)
66
66
testPaths : ' reports/test-results.xml' # OPCIONES: '/test-results.xml' o 'cucumber-report.json'
67
- testExecKey : ' GX-22348 ' # EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
67
+ testExecKey : ' GX-23010 ' # EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
68
68
projectKey : ' GX' # EDITAR EN CASO DE TRABAJAR CON OTRO PROYECTO.
69
69
70
70
- name : 🔔Slack Notification of Done
Original file line number Diff line number Diff line change
1
+ import { removeLogs } from '@helper/RemoveLogs' ;
2
+ removeLogs ( ) ;
3
+
4
+ import { Elements } from '@pages/Elements/GX-23008-Upload-and-Download.Page' ;
5
+
6
+ describe ( '✅-tools-qa-elements-upload-and-download' , ( ) => {
7
+ beforeEach ( 'Usuario se encuentra dentro del Sut' , ( ) => {
8
+ cy . visit ( '/upload-download' ) ;
9
+ } ) ;
10
+ it ( '23009 | TC1: Validar que al seleccionar el botón “Download” se descarga un archivo al ordenador' , ( ) => {
11
+ Elements . get . ButtonDownload ( ) . click ( ) ;
12
+ cy . readFile ( 'cypress/downloads/sampleFile.jpeg' ) . should ( 'exist' ) ;
13
+ } ) ;
14
+ it ( '23009 | TC2: Validar subir un archivo con el botón “Seleccionar archivo”' , ( ) => {
15
+ Elements . UploadFile ( 'images/upexlogo.png' ) ;
16
+ Elements . get . ValidationFile ( ) . should ( 'contain.text' , 'upexlogo.png' ) ;
17
+ } ) ;
18
+ } ) ;
Original file line number Diff line number Diff line change
1
+ class ElementsToolQA {
2
+ get = {
3
+ ButtonDownload : ( ) => cy . get ( '#downloadButton' ) ,
4
+ ButtonChooseFile : ( ) => cy . get ( 'input[id ="uploadFile"]' ) ,
5
+ ValidationFile : ( ) => cy . get ( '#uploadedFilePath' ) ,
6
+ } ;
7
+
8
+ UploadFile ( type ) {
9
+ this . get . ButtonChooseFile ( ) . attachFile ( type ) ;
10
+ }
11
+ }
12
+
13
+ export const Elements = new ElementsToolQA ( ) ;
Original file line number Diff line number Diff line change
1
+ # Description =
2
+
3
+ Challenge para QA:
4
+
5
+ QAA deberá de válidar la descarga realizada.
6
+
7
+ QAA deberá de válidar la subida de un archivo local. (NO usar una imagen nueva, usar las de ejemplo ubicadas en cypress/fixtures/image/ )
8
+
9
+ El objetivo del test será aprender:
10
+
11
+ Obtener elementos, y realizar acciones;
12
+
13
+ Aprender a utilizar herramientas externas y/o propias de Cypress
14
+
15
+ # 🚩BUSINESS RULES SPEC
16
+
17
+ Button:
18
+
19
+ Download:
20
+
21
+ IF: The "download" button is selected.
22
+
23
+ THEN: The file must be downloaded into the "download" PC folder.
24
+
25
+ Choose file:
26
+
27
+ IF: The "choose file" button is selected.
28
+
29
+ THEN: The PC File Explorer is open in order to select and upload a file.
30
+
31
+ AND: The uploaded file must display the Name and Location.
32
+
33
+ // TechNote: The button “Choose File” is the only one that must be used to upload files
You can’t perform that action at this time.
0 commit comments