Project

General

Profile

SeleniumTests » History » Version 11

Carsten Rose, 23.01.2024 11:21

1 5 Carsten Rose
{{child_pages}}
2
3
{{toc}}
4
5 1 Carsten Rose
h1. SeleniumTests
6 2 Carsten Rose
7 11 Carsten Rose
* "QFQ Selenium Test List":https://uzh-my.sharepoint.com/:x:/g/personal/carsten_rose_math_uzh_ch/EXAccCIpnA1Pj18dp_zoY28BHucLzIMIbwIWgNqmPk0FKw?e=EV4xPM
8
9 2 Carsten Rose
* *Test QFQ*
10
* Test a specific application
11
12
13
* *Interactive Tests* - used during developing of selenium tests
14 9 Carsten Rose
* Automated Tests -
15 2 Carsten Rose
16 4 Carsten Rose
h2. QFQ-Test-Application
17 1 Carsten Rose
18 3 Carsten Rose
* Creating a dedicated QFQ-Test-Application (#17523) - this will be the base for all further interactice and automated tests.
19 4 Carsten Rose
* This will be the same for a) Developer (check out new features, example code) and b) selenium tests.
20 1 Carsten Rose
* The  'Develop' part will be based on the crose QFQ site http://webwork20:38773/
21 4 Carsten Rose
* Selenium Test Data: all tables start with 'Data_'
22
* Developer Test Data: all tables start with 'Dev_'
23 10 Carsten Rose
* The QFQ-Test-Application will be reinitialized nightly (to make clear that all changes are lost). 
24
* When the QFQ-Test-Application has to be enhanced, a dump (T3, Data, Files) to the repository has to be done (so that the nightly init does not loose latest changes). 
25 4 Carsten Rose
26 3 Carsten Rose
* Current Shweta 'QFQ learn' and 'Selenium test' is the same: http://webwork20:37091 
27 9 Carsten Rose
  
28
  * We need a develop site for Shweta (might be the existing one, or a copy of the new QFQ-Test-Application)
29 10 Carsten Rose
  * A 'production' version which is 'QFQ-Test-Application' 
30 1 Carsten Rose
31
h2. Preparation Tasks together with Enis
32
33 4 Carsten Rose
* Setup dedicated QFQ test environment for run as automated tests (Check how Marc did it).
34
* Debugging & troubleshoot Python/Selenium tests - *make it easier for Shweta to see what is not working and why*.
35 1 Carsten Rose
36
h2. Update QFQ, Typo3, MariaDB and keep the tests up and running
37 3 Carsten Rose
38
* Document how to update the QFQ-Test-Application.
39 4 Carsten Rose
* How does the developer fetch the latest QFQ-Test-Application?
40 3 Carsten Rose
* Later: Maybe several T3 / QFQ / MariaDB versions.
41
42
h2. Tasks for Shweta
43
44 8 Carsten Rose
* Categorize Tests. E.g: Form, FormElement, Report, Link, Downloads 
45
46
  * Create Wiki Pages for each category and write down basic tests (one per line) - go through https://qfq.io/doc.
47
48
* Define 'test-data': sql file, all tables have the prefix `Data_`, such test-data can be played (and should implicit remove all previous data).
49
50 2 Carsten Rose
51
h2. Topics
52
53
* Clean Test Environment
54
55
  * Reproducable T3 QFQ Site
56
  * Reproducable Data 
57
58
* Definition: What to test
59
60
  * Form
61
62
    * Form Save Record
63
    * Form Update Record
64
    * Form Delete Record
65
    * Each individual FormElement
66
    * Dynamic Update
67
68
  * Report
69
70
    * Syntax like: head, tail, shead, stail, rbeg, rend, renr, fbeg, fend, althead, altsql
71
    * `... as _link`
72
73
      * plain link
74
      * link with question dialog
75
      * link with tooltip
76
      * render mode    
77
78
* Implement Tests
79
80 7 Carsten Rose
  *