-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsetting.json
More file actions
120 lines (117 loc) · 3.69 KB
/
appsetting.json
File metadata and controls
120 lines (117 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"site": {
"name": "Můj testovací virtuální self.state eshop",
"url": "https://muj-selfstate-shop/registrace/",
"cookies_selector": "#cookiescript_accept",
"submit_selector": "#frmRegisterForm-save",
"fields": {
"email": {
"label": "E-mail *",
"selector": "#frmRegisterForm-email",
"type": "text"
},
"password": {
"label": "Heslo *",
"selector": "#frmRegisterForm-password",
"type": "password",
"required": true,
"validation": {
"format": "email",
"min_length": 6,
"max_length": 20
}
},
"password_confirm": {
"label": "Potvrzení hesla *",
"selector": "#frmRegisterForm-password2",
"type": "password",
"required": true,
"validation": {
"matches": "password"
}
},
"first_name": {
"label": "Jméno *",
"selector": "#frmRegisterForm-firstname",
"type": "text",
"required": true,
"validation": {
"min_length": 2,
"max_length": 20
}
},
"last_name": {
"label": "Příjmení *",
"selector": "#frmRegisterForm-lastname",
"type": "text",
"required": true,
"validation": {
"min_length": 2,
"max_length": 20
}
},
"phone": {
"label": "Telefon *",
"selector": "#frmRegisterForm-phone",
"type": "text",
"required": true,
"validation": {
"format": "phone"
}
},
"gdpr": {
"label": "Souhlas se zpracováním osobních údajů *",
"selector": "#frmRegisterForm-personalData",
"type": "checkbox",
"required": true
}
}
},
"form": {
"expected_fields": 10
},
"agent": {
"actions": [
"click_cookies",
"scroll",
"fill_email",
"fill_password",
"fill_password_confirm",
"fill_first_name",
"fill_last_name",
"fill_phone",
"fill_gdpr",
"submit"
],
"_reward_comment": "Tabulka odměn pro jednotlivé akce agenta",
"reward_table": {
"click_cookies": 5,
"skip_cookies": -2,
"scroll_success": 3,
"scroll_fail": -1,
"fill_correct_field": 1,
"fill_wrong_field": -5,
"submit_with_validation_messages": 2,
"submit_without_fields": 1,
"detect_missing_field": 4,
"detect_missing_validation": -4,
"submit_success_valid": 6,
"submit_success_invalid": -6
},
"_reward_notes": {
"click_cookies": "✅ Kliknutí na cookies lištu – žádoucí",
"skip_cookies": "❌ Přeskočení cookies – penalizace",
"scroll_success": "✅ Úspěšné scrollování k poli – odměna",
"scroll_fail": "❌ Neúspěšné scrollování – penalizace",
"fill_correct_field": "✅ Vyplněno správné pole – malá odměna",
"fill_wrong_field": "❌ Nesmyslné nebo chybné vyplnění – penalizace",
"submit_with_validation_messages": "⚠️ Odeslání s chybami – např. chybí pole",
"submit_without_fields": "🛑 Odesláno bez polí – testovací chování",
"detect_missing_field": "✅ Agent správně zjistil, že nějaké povinné pole chybí – odměna",
"detect_missing_validation": "❌ Agent zjistil, že se nezobrazila žádná validační hláška, i když chybělo povinné pole – chyba systému",
"submit_success_valid": "✅ Agent úspěšně dokončil validní registraci – velká odměna",
"submit_success_invalid": "❌ Agent dokončil registraci i přesto, že chyběla povinná pole – chyba systému"
},
"max_steps": 5
}
}