Produced by Araxis Merge on 10/3/2017 11:16:06 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 | ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features-arch\old_ehmp_features_ruby\steps | lastName_search_steps.rb | Tue Dec 15 14:05:18 2015 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features-arch\old_ehmp_features_ruby\steps | lastName_search_steps.rb | Mon Oct 2 20:09:38 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 70 |
| Changed | 2 | 4 |
| 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 | path = Fil e.expand_p ath '..', __FILE__ | |
| 2 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 3 | path = Fil e.expand_p ath '../.. /../../sha red-test-r uby', __FI LE__ | |
| 4 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 5 | require 'V erifyJsonR untimeValu e.rb' | |
| 6 | ||
| 7 | When(/^the user sear ches for a patient " (.*?)" in VPR format $/) do |la st_name| | |
| 8 | # https:// IP /vpr/searc h/Patient/ ?name=EIGH T | |
| 9 | path = Q uerySearch .new("full Name", las t_name).pa th | |
| 10 | p path | |
| 11 | @respons e = HTTPar tyWithBasi cAuth.get_ with_autho rization(p ath) | |
| 12 | end | |
| 13 | ||
| 14 | When(/^the user sear ches in su mmary resu lts for a patient "( .*?)" in V PR format$ /) do |las t_name| | |
| 15 | # https:// IP /vpr/searc h/Patient/ ?name=EIGH T&resultsR ecordType= summary | |
| 16 | path = Q uerySearch .new("full Name", las t_name).ad d_paramete r("results RecordType ", "summar y") | |
| 17 | p path | |
| 18 | @respons e = HTTPar tyWithBasi cAuth.get_ with_autho rization(p ath) | |
| 19 | end | |
| 20 | ||
| 21 | Then(/^the VPR resul ts contain :$/) do |t able| | |
| 22 | @json_ob ject = JSO N.parse(@r esponse.bo dy) | |
| 23 | result_a rray = @js on_object[ "data"]["i tems"] | |
| 24 | ||
| 25 | json_ver ify = Veri fyJsonRunt imeValue.n ew | |
| 26 | json_ver ify.verify _json_runt ime_vlaue( result_arr ay, table) | |
| 27 | end | |
| 28 | ||
| 29 | Then(/^cor responding matching records to taling "(. *?)" are d isplayed$/ ) do |tota l| | |
| 30 | @json_ob ject = JSO N.parse(@r esponse.bo dy) | |
| 31 | result_a rray = @js on_object[ "data"]["t otalItems" ] | |
| 32 | if total == "IS_SE T" | |
| 33 | expect (result_ar ray).to be > 0, "res ponse tota l items sh ould not b e zero; re sponse bod y #{result _array}" | |
| 34 | else | |
| 35 | expect (result_ar ray.to_s). to eq(tota l), "respo nse total items was #{total}: response b ody #{resu lt_array}" | |
| 36 | end | |
| 37 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.