view · edit · sidebar · attach · print · history

<< | Index | >>

20131204-integrate-epha-interaction-4

Summary

  • integrate a simple interface to display the interaction from EPHA

Commits

Index

---

integrate a simple interface to display the interaction from EPHA

Continue work. Example is still interaction is between Marcoumar and Aspirin.

Cleaning up of the test for views to have a clear base to test against with commit Make all tests for views pass

As I have to change the Web-Interface of oddb.org I want tests, that check the expected behaviour. Therefore I reactivated the spec/smoke_test.rb from my vagrant-oddb project. The first time I ran rspec spec/smoketest_spec.rb I got the following Failure.

Failures:

  1) ch.oddb.org should trigger the limitation after maximal 5 queries
     Failure/Error: @browser.button(:name, "search").click
     Watir::Exception::UnknownObjectException:
       unable to locate element, using {:name=>"search", :tag_name=>"button"}
     # ./spec/smoketest_spec.rb:88:in `block (3 levels) in <top (required)>'
     # ./spec/smoketest_spec.rb:84:in `each'
     # ./spec/smoketest_spec.rb:84:in `block (2 levels) in <top (required)>'

Finished in 1 minute 16.09 seconds
10 examples, 1 failure

When running it a second time, the error did not show up again. May be the oddbd just took a little to long the first time to respond.

Added the same test (with the new URL oddb-ci.dyndns.org) via commit Added spec/smoketest.rb from vagrant-oddb

I don't intend for the moment to add these test to the travis-CI even when there seems to be a possibility to to it. See gui-and-headless-browser.

Documented watir tests for newcomers. See commit Creating Watir tests using the existing interactions to add the two medicaments Marcoumar and Aspirin to the interactions basket. See commit Added watir test for existing interactions

Zeno explained that:

  • The old "Plus" search facility will go away as soon as the new interactions are working
  • The old interactions result displayed also the references which could be found in the results fetched from api.epha.ch. They will be added later either because Epha adds them to the CSV export or we grab them when reading the interactions from Epha.
  • The steps to search are
    • Enable "Instant" search (this will not be necessary after)
    • Search for a medicament
    • Add it to the interaction basket
    • Do the above two steps for each medicament
    • Click on show interactions
    • Display the results

I decided to first remove the unneeded old stuff (e.g. the links to pub_med, reference). In the state I will replace looking via Epha by consulting the new tables.

After upgrading from dojo 1.3 to 1.7.2. The mouse over worked. Pushed commit to Fix link to matrix.epha.ch

Pushed a few commits for the vagrant environment for the changes made today and last week.

view · edit · sidebar · attach · print · history
Page last modified on December 04, 2013, at 06:06 PM