Sha256: 9d5757f1da541933a2443209204677da6fbe2121d8459ef577c039a769761243

Contents?: true

Size: 1.32 KB

Versions: 25

Compression:

Stored size: 1.32 KB

Contents

module WebService
  module Client
    require 'test_helper'
    class SearchBenchmarks < Test::Unit::TestCase
      def setup
        @base_url = "http://bobcatdev.library.nyu.edu"
        @doc_id = "nyu_aleph000062856"
        @isbn = "0143039008"
        @issn = "0090-5720"
        @title = "Travels with My Aunt"
        @author = "Graham Greene"
        @genre = "Book"
      end

      def test_benchmarks
        VCR.turn_off!
        Benchmark.bmbm do |results|
          results.report("Web Service Search:") {
            (1..10).each {
              search = Exlibris::Primo::WebService::Client::Search.new :base_url => @base_url
              response = search.search_brief "<request><![CDATA[<searchRequest xmlns=\"http://www.exlibris.com/primo/xsd/wsRequest\" xmlns:uic=\"http://www.exlibris.com/primo/xsd/primoview/uicomponents\"><PrimoSearchRequest xmlns=\"http://www.exlibris.com/primo/xsd/search/request\"><QueryTerms><BoolOpeator>AND</BoolOpeator><QueryTerm><IndexField>isbn</IndexField><PrecisionOperator>exact</PrecisionOperator><Value>0090-5720</Value></QueryTerm></QueryTerms><StartIndex>1</StartIndex><BulkSize>5</BulkSize><DidUMeanEnabled>false</DidUMeanEnabled></PrimoSearchRequest><institution>NYU</institution></searchRequest>]]></request>"
            }
          }
        end
        VCR.turn_on!
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 test/web_service/client/search_benchmarks.rb
exlibris-primo-2.1.0 test/web_service/client/search_benchmarks.rb
exlibris-primo-2.0.0 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.9 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.8 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.7 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.6 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.5 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.4 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.3 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.2 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.1 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.1.0 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.11 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.10 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.9 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.8 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.7 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.6 test/web_service/client/search_benchmarks.rb
exlibris-primo-1.0.5 test/web_service/client/search_benchmarks.rb