testcentricity_web 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf088aa9322606d81ac794bcbea4d0add3c8e240
|
4
|
+
data.tar.gz: b15d632286aad7fe7b96963ec9270b82f4fcbca3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37eeb21e6780778e32782f45dddb4742a18a461ac4d7a6c741088981534f6bff04ba4e0b7dc72d9054acad610f2bb49484148537310ac1e3f297f6d16dff2850
|
7
|
+
data.tar.gz: def87f53539c983c3a9a168e8cd3548025f3634f3ae1225a22de44650f0d992b1883cb95b71c27f47b2a7a4d1b66824e98041166f7f1d5fcbf37e092b1d49be8
|
@@ -6,14 +6,14 @@ module TestCentricity
|
|
6
6
|
|
7
7
|
def self.enqueue_assert_equal(expected, actual, error_message)
|
8
8
|
unless expected == actual
|
9
|
-
enqueue("#{error_message} to be\n #{expected}\nbut found\n #{actual}")
|
9
|
+
enqueue("#{error_message} to be\n '#{expected}'\nbut found\n '#{actual}'")
|
10
10
|
enqueue_screenshot
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.enqueue_assert_not_equal(expected, actual, error_message)
|
15
15
|
unless expected != actual
|
16
|
-
enqueue("#{error_message} to not be equal to #{expected}")
|
16
|
+
enqueue("#{error_message} to not be equal to '#{expected}'")
|
17
17
|
enqueue_screenshot
|
18
18
|
end
|
19
19
|
end
|
@@ -458,21 +458,36 @@ module TestCentricity
|
|
458
458
|
when :siebel_options
|
459
459
|
actual = ui_object.get_siebel_options
|
460
460
|
else
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
461
|
+
if property.is_a?(Hash)
|
462
|
+
property.each do |key, value|
|
463
|
+
case key
|
464
|
+
when :cell
|
465
|
+
actual = ui_object.get_table_cell(value[0].to_i, value[1].to_i)
|
466
|
+
when :row
|
467
|
+
actual = ui_object.get_table_row(value.to_i)
|
468
|
+
when :column
|
469
|
+
actual = ui_object.get_table_column(value.to_i)
|
470
|
+
when :item
|
471
|
+
actual = ui_object.get_list_item(value.to_i)
|
472
|
+
end
|
473
|
+
end
|
474
|
+
else
|
475
|
+
props = property.to_s.split('_')
|
476
|
+
case props[0].to_sym
|
477
|
+
when :cell
|
478
|
+
cell = property.to_s.delete('cell_')
|
479
|
+
cell = cell.split('_')
|
480
|
+
actual = ui_object.get_table_cell(cell[0].to_i, cell[1].to_i)
|
481
|
+
when :row
|
482
|
+
row = property.to_s.delete('row_')
|
483
|
+
actual = ui_object.get_table_row(row.to_i)
|
484
|
+
when :column
|
485
|
+
column = property.to_s.delete('column_')
|
486
|
+
actual = ui_object.get_table_column(column.to_i)
|
487
|
+
when :item
|
488
|
+
item = property.to_s.delete('item_')
|
489
|
+
actual = ui_object.get_list_item(item.to_i)
|
490
|
+
end
|
476
491
|
end
|
477
492
|
end
|
478
493
|
|
@@ -481,23 +496,23 @@ module TestCentricity
|
|
481
496
|
state.each do |key, value|
|
482
497
|
case key
|
483
498
|
when :lt, :less_than
|
484
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be less than #{value} but found #{actual}") unless actual < value
|
499
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be less than #{value} but found '#{actual}'") unless actual < value
|
485
500
|
when :lt_eq, :less_than_or_equal
|
486
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be less than or equal to #{value} but found #{actual}") unless actual <= value
|
501
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be less than or equal to #{value} but found '#{actual}'") unless actual <= value
|
487
502
|
when :gt, :greater_than
|
488
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be greater than #{value} but found #{actual}") unless actual > value
|
503
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be greater than #{value} but found '#{actual}'") unless actual > value
|
489
504
|
when :gt_eq, :greater_than_or_equal
|
490
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be greater than or equal to #{value} but found #{actual}") unless actual >= value
|
505
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be greater than or equal to #{value} but found '#{actual}'") unless actual >= value
|
491
506
|
when :starts_with
|
492
|
-
ExceptionQueue.enqueue_exception("#{error_msg} start with '#{value}' but found #{actual}") unless actual.start_with?(value)
|
507
|
+
ExceptionQueue.enqueue_exception("#{error_msg} start with '#{value}' but found '#{actual}'") unless actual.start_with?(value)
|
493
508
|
when :ends_with
|
494
|
-
ExceptionQueue.enqueue_exception("#{error_msg} end with '#{value}' but found #{actual}") unless actual.end_with?(value)
|
509
|
+
ExceptionQueue.enqueue_exception("#{error_msg} end with '#{value}' but found '#{actual}'") unless actual.end_with?(value)
|
495
510
|
when :contains
|
496
|
-
ExceptionQueue.enqueue_exception("#{error_msg} contain '#{value}' but found #{actual}") unless actual.include?(value)
|
511
|
+
ExceptionQueue.enqueue_exception("#{error_msg} contain '#{value}' but found '#{actual}'") unless actual.include?(value)
|
497
512
|
when :not_contains, :does_not_contain
|
498
|
-
ExceptionQueue.enqueue_exception("#{error_msg} not contain '#{value}' but found #{actual}") if actual.include?(value)
|
513
|
+
ExceptionQueue.enqueue_exception("#{error_msg} not contain '#{value}' but found '#{actual}'") if actual.include?(value)
|
499
514
|
when :not_equal
|
500
|
-
ExceptionQueue.enqueue_exception("#{error_msg} not equal '#{value}' but found #{actual}") if actual == value
|
515
|
+
ExceptionQueue.enqueue_exception("#{error_msg} not equal '#{value}' but found '#{actual}'") if actual == value
|
501
516
|
when :like, :is_like
|
502
517
|
actual_like = actual.delete("\n")
|
503
518
|
actual_like = actual_like.delete("\r")
|
@@ -509,7 +524,7 @@ module TestCentricity
|
|
509
524
|
expected = expected.delete("\t")
|
510
525
|
expected = expected.delete(' ')
|
511
526
|
expected = expected.downcase
|
512
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be like '#{value}' but found #{actual}") unless actual_like.include?(expected)
|
527
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be like '#{value}' but found '#{actual}'") unless actual_like.include?(expected)
|
513
528
|
when :translate
|
514
529
|
expected = I18n.t(value)
|
515
530
|
ExceptionQueue.enqueue_assert_equal(expected, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) translated #{property} property")
|
@@ -529,21 +529,36 @@ module TestCentricity
|
|
529
529
|
when :siebel_options
|
530
530
|
actual = ui_object.get_siebel_options
|
531
531
|
else
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
532
|
+
if property.is_a?(Hash)
|
533
|
+
property.each do |key, value|
|
534
|
+
case key
|
535
|
+
when :cell
|
536
|
+
actual = ui_object.get_table_cell(value[0].to_i, value[1].to_i)
|
537
|
+
when :row
|
538
|
+
actual = ui_object.get_table_row(value.to_i)
|
539
|
+
when :column
|
540
|
+
actual = ui_object.get_table_column(value.to_i)
|
541
|
+
when :item
|
542
|
+
actual = ui_object.get_list_item(value.to_i)
|
543
|
+
end
|
544
|
+
end
|
545
|
+
else
|
546
|
+
props = property.to_s.split('_')
|
547
|
+
case props[0].to_sym
|
548
|
+
when :cell
|
549
|
+
cell = property.to_s.delete('cell_')
|
550
|
+
cell = cell.split('_')
|
551
|
+
actual = ui_object.get_table_cell(cell[0].to_i, cell[1].to_i)
|
552
|
+
when :row
|
553
|
+
row = property.to_s.delete('row_')
|
554
|
+
actual = ui_object.get_table_row(row.to_i)
|
555
|
+
when :column
|
556
|
+
column = property.to_s.delete('column_')
|
557
|
+
actual = ui_object.get_table_column(column.to_i)
|
558
|
+
when :item
|
559
|
+
item = property.to_s.delete('item_')
|
560
|
+
actual = ui_object.get_list_item(item.to_i)
|
561
|
+
end
|
547
562
|
end
|
548
563
|
end
|
549
564
|
|
@@ -552,23 +567,23 @@ module TestCentricity
|
|
552
567
|
state.each do |key, value|
|
553
568
|
case key
|
554
569
|
when :lt, :less_than
|
555
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be less than #{value} but found #{actual}") unless actual < value
|
570
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be less than #{value} but found '#{actual}'") unless actual < value
|
556
571
|
when :lt_eq, :less_than_or_equal
|
557
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be less than or equal to #{value} but found #{actual}") unless actual <= value
|
572
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be less than or equal to #{value} but found '#{actual}'") unless actual <= value
|
558
573
|
when :gt, :greater_than
|
559
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be greater than #{value} but found #{actual}") unless actual > value
|
574
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be greater than #{value} but found '#{actual}'") unless actual > value
|
560
575
|
when :gt_eq, :greater_than_or_equal
|
561
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be greater than or equal to #{value} but found #{actual}") unless actual >= value
|
576
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be greater than or equal to #{value} but found '#{actual}'") unless actual >= value
|
562
577
|
when :starts_with
|
563
|
-
ExceptionQueue.enqueue_exception("#{error_msg} start with '#{value}' but found #{actual}") unless actual.start_with?(value)
|
578
|
+
ExceptionQueue.enqueue_exception("#{error_msg} start with '#{value}' but found '#{actual}'") unless actual.start_with?(value)
|
564
579
|
when :ends_with
|
565
|
-
ExceptionQueue.enqueue_exception("#{error_msg} end with '#{value}' but found #{actual}") unless actual.end_with?(value)
|
580
|
+
ExceptionQueue.enqueue_exception("#{error_msg} end with '#{value}' but found '#{actual}'") unless actual.end_with?(value)
|
566
581
|
when :contains
|
567
|
-
ExceptionQueue.enqueue_exception("#{error_msg} contain '#{value}' but found #{actual}") unless actual.include?(value)
|
582
|
+
ExceptionQueue.enqueue_exception("#{error_msg} contain '#{value}' but found '#{actual}'") unless actual.include?(value)
|
568
583
|
when :not_contains, :does_not_contain
|
569
|
-
ExceptionQueue.enqueue_exception("#{error_msg} not contain '#{value}' but found #{actual}") if actual.include?(value)
|
584
|
+
ExceptionQueue.enqueue_exception("#{error_msg} not contain '#{value}' but found '#{actual}'") if actual.include?(value)
|
570
585
|
when :not_equal
|
571
|
-
ExceptionQueue.enqueue_exception("#{error_msg} not equal '#{value}' but found #{actual}") if actual == value
|
586
|
+
ExceptionQueue.enqueue_exception("#{error_msg} not equal '#{value}' but found '#{actual}'") if actual == value
|
572
587
|
when :like, :is_like
|
573
588
|
actual_like = actual.delete("\n")
|
574
589
|
actual_like = actual_like.delete("\r")
|
@@ -580,7 +595,7 @@ module TestCentricity
|
|
580
595
|
expected = expected.delete("\t")
|
581
596
|
expected = expected.delete(' ')
|
582
597
|
expected = expected.downcase
|
583
|
-
ExceptionQueue.enqueue_exception("#{error_msg} be like '#{value}' but found #{actual}") unless actual_like.include?(expected)
|
598
|
+
ExceptionQueue.enqueue_exception("#{error_msg} be like '#{value}' but found '#{actual}'") unless actual_like.include?(expected)
|
584
599
|
when :translate
|
585
600
|
expected = I18n.t(value)
|
586
601
|
ExceptionQueue.enqueue_assert_equal(expected, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) translated #{property} property")
|
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.6
|
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-02-
|
11
|
+
date: 2017-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|