could not connect to www.swissreg.ch: #<Net::HTTPInternalServerError:0x007f8a7d69bb58>
---
Installed virtualbox-bin. Adapted modules.conf. Added myself to the vboxusers group. Now VirtualBox starts find.
Installed a Windows-7 image using the license provided by Zeno yesterday. Installed the following stuff to be able to use this VM.
Now I am able to run the watir tests (Removing setting the path).
These fixes must be made:
Fixed display both directions with
Fixed width of interaction and removing space above interacion info with commit Suppress leading space in rezept before interaction
The field prescription_comment is still not correctly aligned if the browser is extremly wide.
The field about prescription useage are weird, when the browser is very small.
Using the IE developer-tools to try to find the error.
When sending the HTML of http://oddb-ci2.dyndns.org/de/gcc/rezept/ean/7680576730049 to verify it I get 23 errors in the HTML, 170 in the CSS. This is not very helpful.
Therefore I tried to debug the javascript. Added a new drug. Broke in searchbar.rb in the function selectXhrRequest and found that the variable @var searchbar = dojo.byId('#{id}');@ is undefined.
Replaced it by window.location.href + some minor corrections. Now it work unter IE, too. But my watir tests don't work, because entering via the chooser-toolbar does not work. After looking around, found that I must
Then it works quite well, but I still had 11 errors when testing under IE on Windows7. The problem is, that parsing the html text for a result like Aspirin takes forever on IE and kicks in a limitation.
Remarked that the pull down menus to repeat don't work anymore. A quick test showed, that they work only when we have exactly one drug selected.
Recorded a watir test and found one reason why the csv-export did not work. bin/oddbd displayed
rror in SBSM::Session#to_html: /de/gcc NoMethodError undefined method `barcode' for nil:NilClass /var/www/oddb.org/src/view/drugs/prescription.rb:871:in `block in extract' /var/www/oddb.org/src/view/drugs/prescription.rb:867:in `collect' /var/www/oddb.org/src/view/drugs/prescription.rb:867:in `extract' /var/www/oddb.org/src/view/drugs/prescription.rb:798:in `block in to_csv' /var/www/oddb.org/src/view/drugs/prescription.rb:796:in `each' /var/www/oddb.org/src/view/drugs/prescription.rb:796:in `each_with_index' /var/www/oddb.org/src/view/drugs/prescription.rb:796:in `to_csv' /var/www/oddb.org/src/view/drugs/prescription.rb:821:in `to_html' /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib/sbsm/state.rb:181:in `to_html' /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib/sbsm/session.rb:447:in `to_html' /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib/sbsm/session.rb:173:in `block in drb_process' <internal:prelude>:10:in `synchronize' /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib/sbsm/session.rb:171:in `drb_process' /usr/lib64/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block' /usr/lib64/ruby/1.9.1/drb/drb.rb:1508:in `perform' /usr/lib64/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop' /usr/lib64/ruby/1.9.1/drb/drb.rb:1582:in `loop' /usr/lib64/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop'
Adding some debugging, showed me the fields extracted were
867: Extracting pack nil 867: Extracting pack #<ODBA::Stub:70351663371540#981074 @odba_class=ODDB::Package @odba_container=70351663324620#96647> 873: Extracting key :barcode 873: Extracting key :name_with_size 873: Extracting key :price_public 873: Extracting key :company_name
After a small fix prescription.to_csv don't crash. But display only comment of last drug, it exports to CSV at least the correct drug names, but only the comment of the last drug. e.g.
"";"";"";w 26.03.2014 ;;; 7680529041024;Cosaar 100, 28 Tablette(n);42.20;"MSD Merck Sharp & Dohme AG" 7680193950301;Marcoumar, 100 Tablette(n);20.80;MEDA Pharma GmbH 7680353520153;Ponstan 125 mg, 6 Suppositorien;5.90;Pfizer AG vor dem Essen Einmaliges Rezept Etwas kluges zum Ponstan