testcentricity_web 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -50
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0686607dabcb90195da5b0925bf68b2d137bd0a1
|
4
|
+
data.tar.gz: 0a90b8b208c72831c558ee8d73de8ead824d0a0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db36fd533cd36b4b8d7eaa22c93285439fb6d4b404961e8311d3850447044220c364c3ac61b57d91942cf372bac1400384eb7f32cac05363e9aac00748a92dbc
|
7
|
+
data.tar.gz: 47014feed7a3787389b699a54b3e9decf57c4348449a076db9a6f1ba88677586b1409fdc05113cad0c64180717db5c0832cc49bcc003cd646d12bda0c7057e9d
|
data/README.md
CHANGED
@@ -143,6 +143,7 @@ You define your page's **Traits** as shown below:
|
|
143
143
|
|
144
144
|
|
145
145
|
class HomePage < TestCentricity::PageObject
|
146
|
+
# this page may be referred to as 'Home' or 'Dashboard' page so page_name trait is an Array of Strings
|
146
147
|
trait(:page_name) { ['Home', 'Dashboard'] }
|
147
148
|
trait(:page_url) { '/dashboard' }
|
148
149
|
trait(:page_locator) { 'body.dashboard' }
|
@@ -393,7 +394,7 @@ tables, lists, buttons, etc. **UI Elements** are declared and instantiated withi
|
|
393
394
|
Object** in which they are contained. With TestCentricity Web, all UI elements are based on the **UIElement** class.
|
394
395
|
|
395
396
|
|
396
|
-
### Declaring and
|
397
|
+
### Declaring and Instantiating UI Element
|
397
398
|
|
398
399
|
Single **UIElement** declarations have the following format:
|
399
400
|
|
@@ -405,60 +406,59 @@ Single **UIElement** declarations have the following format:
|
|
405
406
|
Multiple **UIElement** declarations for a collection of elements of the same type can be performed by passing a hash table containing the
|
406
407
|
names and locators of each individual element.
|
407
408
|
|
409
|
+
### Example UI Element Declarations
|
410
|
+
|
408
411
|
Supported **UI Element** elementTypes and their declarations have the following format:
|
409
412
|
|
410
413
|
*Single element declarations:*
|
411
414
|
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
415
|
+
class SamplePage < TestCentricity::PageObject
|
416
|
+
|
417
|
+
button :button_name, 'locator'
|
418
|
+
textfield :field_name, locator
|
419
|
+
checkbox :checkbox_name, locator
|
420
|
+
radio :radio_button_name, locator
|
421
|
+
label :label_name, locator
|
422
|
+
link :link_name, locator
|
423
|
+
selectlist :select_name, locator
|
424
|
+
list :list_name, locator
|
425
|
+
table :table_name, locator
|
426
|
+
image :image_name, locator
|
427
|
+
filefield :filefield_name, locator
|
428
|
+
|
429
|
+
end
|
423
430
|
|
424
431
|
*Multiple element declarations:*
|
425
432
|
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
table_X_name: locator
|
456
|
-
images image_1_name: locator,
|
457
|
-
...
|
458
|
-
image_X_name: locator
|
459
|
-
filefields filefield_1_name: locator,
|
460
|
-
...
|
461
|
-
filefield_X_name: locator
|
433
|
+
class SamplePage < TestCentricity::PageObject
|
434
|
+
|
435
|
+
buttons button_1_name: locator,
|
436
|
+
button_2_name: locator,
|
437
|
+
button_X_name: locator
|
438
|
+
textfields field_1_name: locator,
|
439
|
+
field_2_name: locator,
|
440
|
+
field_X_name: locator
|
441
|
+
checkboxes check_1_name: locator,
|
442
|
+
check_2_name: locator,
|
443
|
+
check_X_name: locator
|
444
|
+
radios radio_1_name: locator,
|
445
|
+
radio_X_name: locator
|
446
|
+
labels label_1_name: locator,
|
447
|
+
label_X_name: locator
|
448
|
+
links link_1_name: locator,
|
449
|
+
link_X_name: locator
|
450
|
+
selectlists selectlist_1_name: locator,
|
451
|
+
selectlist_X_name: locator
|
452
|
+
lists list_1_name: locator,
|
453
|
+
list_X_name: locator
|
454
|
+
tables table_1_name: locator,
|
455
|
+
table_X_name: locator
|
456
|
+
images image_1_name: locator,
|
457
|
+
image_X_name: locator
|
458
|
+
filefields filefield_1_name: locator,
|
459
|
+
filefield_X_name: locator
|
460
|
+
|
461
|
+
end
|
462
462
|
|
463
463
|
|
464
464
|
Refer to the Class List documentation for the **PageObject** and **PageSection** classes for details on the class methods used for declaring
|
@@ -466,14 +466,13 @@ and instantiating **UI Elements**. Examples of UI element declarations can be fo
|
|
466
466
|
***Adding UI Elements to your PageSection Object*** sections above.
|
467
467
|
|
468
468
|
|
469
|
-
### UIElement
|
469
|
+
### UIElement Inherited Methods
|
470
470
|
|
471
471
|
With TestCentricity, all UI elements are based on the **UIElement** class, and inherit the following methods:
|
472
472
|
|
473
473
|
**Action methods:**
|
474
474
|
|
475
475
|
element.click
|
476
|
-
|
477
476
|
element.double_click
|
478
477
|
element.right_click
|
479
478
|
element.click_at(x, y)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Mrozinski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|