Produced by Araxis Merge on 10/4/2017 8:04:41 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | rdk.zip\rdk\product\tests\acceptance-tests\features\steps | picklist.rb | Mon Aug 21 12:51:01 2017 UTC |
| 2 | rdk.zip\rdk\product\tests\acceptance-tests\features\steps | picklist.rb | Tue Oct 3 20:12:48 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 116 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | require 'V erifyJsonR untimeValu e.rb' | |
| 2 | ||
| 3 | Then(/^the Service C onntected result con tains$/) d o |table| | |
| 4 | result_a rray = @js on_object[ "data"] | |
| 5 | ||
| 6 | table.ro ws.each do |label, a bbrevation , status| | |
| 7 | if sta tus.upcase == "ON" | |
| 8 | stat us = "{\"e nabled\"=> true, \"va lue\"=>\"\ "}" | |
| 9 | else | |
| 10 | stat us = "{\"e nabled\"=> false, \"v alue\"=>\" \"}" | |
| 11 | end | |
| 12 | value = result_a rray[abbre vation] | |
| 13 | expect (status.to _s).to eq( value.to_s ), "Expect ing #{abbr evation} v alue to be #{status} but got # {value}" | |
| 14 | end | |
| 15 | end | |
| 16 | ||
| 17 | When(/^the client re quests pic klist with the param eters and site "([^" ]*)"$/) do |site, ta ble| | |
| 18 | querypic klist = RD KQueryPick list.new(' write-pick -list') | |
| 19 | table.ro ws.each do |row| | |
| 20 | queryp icklist.ad d_paramete r(row[0], row[1]) | |
| 21 | end | |
| 22 | querypic klist.add_ parameter( 'site', si te) | |
| 23 | path = q uerypickli st.path | |
| 24 | @response = HTTParty RDK.get_as _user(path , "#{site} ; DNS ", " REDACTED ") | |
| 25 | @json_ob ject = JSO N.parse(@r esponse.bo dy) | |
| 26 | end | |
| 27 | ||
| 28 | When(/^the client re quests a p icklist wi th the par ameters fo r "([^"]*) " with the user "([^ "]*)"$/) do |title, username, table| | |
| 29 | querypic klist = RD KQueryPick list.new(' write-pick -list-' + title) | |
| 30 | table.ro ws.each do |row| | |
| 31 | queryp icklist.ad d_paramete r(row[0], row[1]) | |
| 32 | end | |
| 33 | path = q uerypickli st.path | |
| 34 | @respons e = HTTPar tyRDK.get_ as_user(pa th, userna me, TestCl ients.pass word_for(u sername)) | |
| 35 | @json_ob ject = JSO N.parse(@r esponse.bo dy) | |
| 36 | end | |
| 37 | ||
| 38 | Then(/^the result co ntains$/) do |table| | |
| 39 | result_a rray = @js on_object[ "data"] | |
| 40 | table.ro ws.each do |field, e xpected_va lue| | |
| 41 | actual _value = r esult_arra y[field] | |
| 42 | if exp ected_valu e.upcase.s tart_with? 'CONTAINS ' | |
| 43 | expe ct(expecte d_value).t o include( actual_val ue.to_s), "Expecting #{field} to be #{ex pected_val ue} but go t #{actual _value}" | |
| 44 | else | |
| 45 | expe ct(expecte d_value).t o eq(actua l_value.to _s), "Expe cting #{fi eld} to be #{expecte d_value} b ut got #{a ctual_valu e}" | |
| 46 | end | |
| 47 | end | |
| 48 | end | |
| 49 | ||
| 50 | Then(/^the picklist result con tains$/) d o |table| | |
| 51 | test = V erifyJsonR untimeValu e.new | |
| 52 | result_a rray = @js on_object[ "data"] | |
| 53 | test.ver ify_json_r untime_val ue(result_ array, tab le) | |
| 54 | end | |
| 55 | ||
| 56 | Then(/^the picklist result is empty$/) d o | |
| 57 | result_a rray = @js on_object[ "data"] | |
| 58 | expect(r esult_arra y.length). to eq(0) | |
| 59 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.