Produced by Araxis Merge on 10/3/2017 11:16:07 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_leipr\steps | solr_smoke_test.rb | Tue Dec 15 14:05:18 2015 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features_leipr\steps | solr_smoke_test.rb | Mon Oct 2 20:10:07 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 104 |
| 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 | 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 | ||
| 6 | require "r spec/expec tations" | |
| 7 | require 'F indElement Factory.rb ' | |
| 8 | require 'W ebDriverFa ctory.rb' | |
| 9 | require 'C ommonDrive r.rb' | |
| 10 | require 'S eleniumCom mand.rb' | |
| 11 | ||
| 12 | When(/^use r lunch Ap ache Solr$ /) do | |
| 13 | @base_url = 'http:// IP /solr/#/' | |
| 14 | Selenium Command.na vigate_to_ url(@base_ url) | |
| 15 | end | |
| 16 | ||
| 17 | Then(/^the main page title dis plays "(.* ?)"$/) do |expect_ti tle| | |
| 18 | runtime_ title = Se leniumComm and.getbac k_page_tit le | |
| 19 | expect(r untime_tit le).to eq expect_tit le | |
| 20 | end | |
| 21 | ||
| 22 | Then(/^the main page dispaly b elow side menu$/) do |table| | |
| 23 | table.ro ws.each do |menu| | |
| 24 | if Sel eniumComma nd.find_el ement(menu [0]) == ni l | |
| 25 | fail "There is no such e lement '#{ menu[0]}' found in s ide menu" | |
| 26 | end | |
| 27 | end | |
| 28 | end | |
| 29 | ||
| 30 | When(/^use r search f or "(.*?)" in Core S elector$/) do |core_ selector| | |
| 31 | @base_ur l = @base_ url + core _selector | |
| 32 | temp_xpa th = "//li [contains( string(), '#{core_se lector}')] " | |
| 33 | ||
| 34 | if Selen iumCommand .driver.fi nd_element s(:xpath, temp_xpath ).any? | |
| 35 | Seleni umCommand. navigate_t o_url(@bas e_url) | |
| 36 | else | |
| 37 | fail ' There is n o such Cor e Selector found' | |
| 38 | end | |
| 39 | end | |
| 40 | ||
| 41 | Then(/^the Number Do cs under S tatistics display "( .*?)"$/) d o |expect_ num_docs| | |
| 42 | xpath = "//*[@id=' statistics ']/div[2]/ dl/dd[2]" | |
| 43 | runtime_ num_docs = SeleniumC ommand.get back_eleme nt_text('x path', xpa th) | |
| 44 | expect(r untime_num _docs).to eq expect_ num_docs | |
| 45 | end | |
| 46 | ||
| 47 | Then(/^the below sid e menu dis paly under search ba r$/) do |t able| | |
| 48 | table.ro ws.each do |menu| | |
| 49 | if Sel eniumComma nd.find_el ement(menu [0]) == ni l | |
| 50 | fail "There is no such e lement '#{ menu[0]}' found in s ide menu" | |
| 51 | end | |
| 52 | end | |
| 53 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.