File tree 4 files changed +77
-2
lines changed
test-plan/in-sprint/sprint-20
4 files changed +77
-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-23033-Dropdown .cy.js
57
+ yarn file cypress/e2e/Tests/Elements /GX-23192-download-and-upload .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-23035 ' # EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
67
+ testExecKey : ' GX-23194 ' # 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 { DaU } from '@pages/Elements/GX-23192-download-upload' ;
2
+ describe ( 'US GX-23192 | TS: ✅ToolsQA | Elements | Upload and Download' , ( ) => {
3
+ beforeEach ( 'Precondition: Having access to SUT' , ( ) => {
4
+ cy . visit ( '/upload-download' ) ;
5
+ DaU . get . mainTitle ( ) . should ( 'have.text' , 'Upload and Download' ) ;
6
+ } ) ;
7
+
8
+ it ( '23193 | TC1: Validate button “download” after click downloads an image file to the pc.' , ( ) => {
9
+ DaU . downloadButton ( ) ;
10
+ cy . readFile ( 'cypress/downloads/sampleFile.jpeg' ) . should ( 'exist' ) ;
11
+ } ) ;
12
+
13
+ it ( '23193 | TC2: Validate button “Choose file” after click allows you to update a file.' , ( ) => {
14
+ DaU . uploadButton ( ) ;
15
+ DaU . get . uploadButtonText ( ) . should ( 'contain.text' , 'upexlogo.png' ) ;
16
+ } ) ;
17
+ } ) ;
18
+ //Se importa la funcion
19
+ import { removeLogs } from '@helper/RemoveLogs' ;
20
+
21
+ //Se ejecuta la funcion para evitar los errores (puedes hacerlo al final de tu codigo)
22
+ removeLogs ( ) ;
Original file line number Diff line number Diff line change
1
+ class DownloadAndUpload {
2
+ get = {
3
+ mainTitle : ( ) => cy . get ( '.main-header' ) ,
4
+ downloadButton : ( ) => cy . get ( '#downloadButton' ) ,
5
+ uploadButton : ( ) => cy . get ( '#uploadFile' ) ,
6
+ uploadButtonText : ( ) => cy . get ( '#uploadedFilePath' ) ,
7
+ } ;
8
+
9
+ downloadButton ( ) {
10
+ this . get . downloadButton ( ) . click ( ) ;
11
+ }
12
+
13
+ uploadButton ( ) {
14
+ this . get . uploadButton ( ) . selectFile ( 'cypress/fixtures/images/upexlogo.png' ) ;
15
+ }
16
+ }
17
+
18
+ export const DaU = new DownloadAndUpload ( ) ;
Original file line number Diff line number Diff line change
1
+ Challenge para QA:
2
+
3
+ QAA deberá de válidar la descarga realizada.
4
+
5
+ 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/ )
6
+
7
+ El objetivo del test será aprender:
8
+
9
+ Obtener elementos, y realizar acciones;
10
+
11
+ Aprender a utilizar herramientas externas y/o propias de Cypress
12
+
13
+ ✅ACCEPTANCE CRITERIA
14
+
15
+ (This feature doesn’t need BDD AC - Please take a look into the BRS tab).
16
+
17
+ 🚩BUSINESS RULES SPEC
18
+
19
+ Button:
20
+
21
+ Download:
22
+
23
+ IF: The "download" button is selected.
24
+
25
+ THEN: The file must be downloaded into the "download" PC folder.
26
+
27
+ Choose file:
28
+
29
+ IF: The "choose file" button is selected.
30
+
31
+ THEN: The PC File Explorer is open in order to select and upload a file.
32
+
33
+ AND: The uploaded file must display the Name and Location.
34
+
35
+ 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