view · edit · sidebar · attach · print · history

Index>

20140923-add-tramal-pi

Summary

  • Add tramal patientinfo and add a watir test for this task
  • Fix paypal poweruser

Commits

Index

Keep in Mind
  • Fix dojo error http://www.sitepen.com/blog/2012/10/31/debugging-dojo-common-error-messages/#forgot-dom-ready
  • I removed on May-27 tests for ix_registrationss, fix_sequences, fix_compositions, fix_packages from test/test_plugin/swissmedic.rb,as he could not find any references for them in the src code. Did I erroneously remove stuff when cleaning up the swissmedic import earlier?
  • The whole test for older/newer Packages must be adapted to xlsx. One must compare the rows (e.g. by creating csv files) and do the same stuff in xlsx!

---

Fix paypal poweruser

As it looks like the bin/admin procedures yus_create_user/yus_grant, etc work fine. I must find out why I never reach the method create_user in src/state/paypal/checkout.rb where yus_create_user is created.

Fixed some flaws when executing the watir tests. I must always create a new, unique email when working with oddb.org (or oddb-ci2.dyndns.org), but always the same email (customer@ywesee.com) for paypal payments.

When I force the payment_received in src/state/paypal/return.rb I can proceed to a link like http://oddb-ci2.dyndns.org/de/gcc/download/email/20140923-175245%40ywesee.com/invoice/32264162/filename/unlimited+access, but I get there an error appdown. It seems that there is a confusion about which invoice was recevied. Will fix this tomorrow.

I also think, that may be I have to add some yus entities for each item processed. Will continue tomorrow.

Added two watir tests to check what happens, when I cancel a paypal payment at two possible stages. These tests pass without problems.

Add tramal patientinfo and add a watir test for this task

Must first grant myself administrative rights for this task on thinpower. Using bin/admin commands like yus_grant 'some_user@ywesee.com', 'login', 'org.oddb.RootUser', :never && yus_allowed? 'some_user@ywesee.com', 'login', 'org.oddb.RootUser' to grant me enough privileges as working with yus_show/yus_grant did not work as this prompted me for the password of Zeno. This was successful and I have now rights to use URL like http://ch.oddb.org/de/gcc/users/.

Clicking in http://ch.oddb.org/de/gcc/users/ on "E-Mail redirects http://ch.oddb.org/de/gcc/sort/state_id/168910860/sortvalue/name and shows NoMethodError undefined method `name' for "select":String. Clicking on Gruppen redirects to http://ch.oddb.org/de/gcc/sort/state_id/167820480/sortvalue/affiliations and shows RangeError 0x3fafe62d80f4 is recycled objec. Similar errors when clicking on Vorname and Nachname.

Opened the received *.docx files with libreoffice and exported them as PDF. Then replacing the patfino worked without any problem.

Creating watir tests. Added a

  • test for uploading two patinfo files with different sizes
  • test for creating a CompanyUser
  • test for sorting Users via mail, affiliatin, first/family name. Skipping these tests as the fail.

Pushed commit Added watir test for uploading patinfo and creating CompanyUser

view · edit · sidebar · attach · print · history
Page last modified on September 23, 2014, at 06:24 PM