Pruebas Selenium
MARIO SEVILLA PONCE
PRUEBAS DE SOFTWARE
Casos de prueba con Selenium
1. {
2. "id": "7c3d44bf-72b1-411f-98e6-b41977b4b9cf",
3. "version": "2.0",
4. "name": "Iniciar Sesion]",
5. "url": "http://localhost:8888/punto",
6. "tests": [{
7. "id": "b418044f-f947-44bd-912a-087311755118",
8. "name": "IniciarSesion",
9. "commands": [{
10. "id": "1a93ac22-35d9-4bb7-b3d7-f64a841b1896",
11. "comment": "",
12. "command": "open",
13. "target": "http://localhost:8888/punto/",
14. "targets": [],
15. "value": ""
16. }, {
17. "id": "cb13764b-ce2f-43b8-878f-c94712b45506",
18. "comment": "",
19. "command": "setWindowSize",
20. "target": "1280x731",
21. "targets": [],
22. "value": ""
23. }, {
24. "id": "863bdb7d-6e2e-4d20-b09a-3167264f3976",
25. "comment": "",
26. "command": "click",
27. "target": "name=ingUsuario",
28. "targets": [
29. ["name=ingUsuario", "name"],
30. ["css=.form-group:nth-child(1) > .form-
control", "css:finder"],
31. ["xpath=//input[@name='ingUsuario']", "xpath:attributes
"],
32. ["xpath=//input", "xpath:position"]
33. ],
34. "value": ""
35. }, {
36. "id": "e7169d27-3fed-4d42-b397-b31cda315070",
37. "comment": "",
38. "command": "type",
39. "target": "name=ingUsuario",
40. "targets": [
41. ["name=ingUsuario", "name"],
42. ["css=.form-group:nth-child(1) > .form-
control", "css:finder"],
43. ["xpath=//input[@name='ingUsuario']", "xpath:attributes
"],
44. ["xpath=//input", "xpath:position"]
45. ],
46. "value": "admin"
47. }, {
48. "id": "ad46753b-e984-4597-8573-839307da0923",
49. "comment": "",
50. "command": "click",
51. "target": "name=ingPassword",
52. "targets": [
53. ["name=ingPassword", "name"],
54. ["css=.form-group:nth-child(2) > .form-
control", "css:finder"],
55. ["xpath=//input[@name='ingPassword']", "xpath:attribute
s"],
56. ["xpath=//div[2]/input", "xpath:position"]
57. ],
58. "value": ""
59. }, {
60. "id": "ef68abea-b7e7-44c9-b9f4-74eb2350b03b",
61. "comment": "",
62. "command": "type",
63. "target": "name=ingPassword",
64. "targets": [
65. ["name=ingPassword", "name"],
66. ["css=.form-group:nth-child(2) > .form-
control", "css:finder"],
67. ["xpath=//input[@name='ingPassword']", "xpath:attribute
s"],
68. ["xpath=//div[2]/input", "xpath:position"]
69. ],
70. "value": "hola1234"
71. }, {
72. "id": "45f019bd-2807-42f8-9a55-32b5a48e1d04",
73. "comment": "",
74. "command": "click",
75. "target": "css=.btn",
76. "targets": [
77. ["css=.btn", "css:finder"],
78. ["xpath=//button[@type='submit']", "xpath:attributes"],
79. ["xpath=//button", "xpath:position"],
80. ["xpath=//button[contains(.,'Ingresar')]", "xpath:inner
Text"]
81. ],
82. "value": ""
83. }, {
84. "id": "a872961e-6eb0-4226-9af5-eb404d592dd4",
85. "comment": "",
86. "command": "click",
87. "target": "css=.hidden-xs",
88. "targets": [
89. ["css=.hidden-xs", "css:finder"],
90. ["xpath=//li/a/span", "xpath:position"],
91. ["xpath=//span[contains(.,'Administrador')]", "xpath:in
nerText"]
92. ],
93. "value": ""
94. }, {
95. "id": "8bb108a1-d6f3-415d-ad9a-072961a1c174",
96. "comment": "",
97. "command": "click",
98. "target": "linkText=Salir",
99. "targets": [
100. ["linkText=Salir", "linkText"],
101. ["css=.btn", "css:finder"],
102. ["xpath=//a[contains(text(),'Salir')]", "xpath:link"],
103. ["xpath=//a[contains(@href, 'salir')]", "xpath:href"],
104. ["xpath=//div/a", "xpath:position"],
105. ["xpath=//a[contains(.,'Salir')]", "xpath:innerText"]
106. ],
107. "value": ""
108. }]
109. }],
110. "suites": [{
111. "id": "aa79c2f0-3ff7-491a-a1da-4883721b194a",
112. "name": "Default Suite",
113. "persistSession": false,
114. "parallel": false,
115. "timeout": 300,
116. "tests": ["b418044f-f947-44bd-912a-087311755118"]
117. }],
118. "urls": [],
119. "plugins": []
120. }