Sanjay Gohel (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm-yaml-sgo into 
lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm.

Requested reviews:
  Atul Patel(OpenERP) (atp-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-import_sugarcrm-yaml-sgo/+merge/69075

hello,

I have add yaml test for sugarcrm.
kindly check it.

Thank you,
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-import_sugarcrm-yaml-sgo/+merge/69075
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm.
=== modified file 'import_sugarcrm/__openerp__.py'
--- import_sugarcrm/__openerp__.py	2011-07-13 13:56:04 +0000
+++ import_sugarcrm/__openerp__.py	2011-07-25 12:06:20 +0000
@@ -32,7 +32,9 @@
     'update_xml': ["wizard/import_message_view.xml",
                    "import_sugarcrm_view.xml"],
     'demo_xml': [],
-    'test': [],
+    'test': [
+             'test/test_account_sugarcrm.yml'
+             ],
     'installable': True,
     'active': False,
 }

=== modified file 'import_sugarcrm/doc/Import Sugarcrm User manual.odt'
Binary files import_sugarcrm/doc/Import Sugarcrm User manual.odt	2011-06-30 13:42:51 +0000 and import_sugarcrm/doc/Import Sugarcrm User manual.odt	2011-07-25 12:06:20 +0000 differ
=== modified file 'import_sugarcrm/import_sugarcrm.py'
--- import_sugarcrm/import_sugarcrm.py	2011-07-14 15:05:12 +0000
+++ import_sugarcrm/import_sugarcrm.py	2011-07-25 12:06:20 +0000
@@ -1097,7 +1097,7 @@
         key_list = module_list.keys()
         for module in key_list :
             module = module_list[module]
-            state = self.get_all(cr,uid,module,context=context)
+            state = self._module_installed(cr,uid,module,context=context)
             if state == False:
                 keys =  ', '.join(key_list)
                 raise osv.except_osv(_('Error !!'), _("%s data required %s Module to be installed, Please install %s module") %(keys,module,module))

=== added directory 'import_sugarcrm/test'
=== added file 'import_sugarcrm/test/test_account_sugarcrm.yml'
--- import_sugarcrm/test/test_account_sugarcrm.yml	1970-01-01 00:00:00 +0000
+++ import_sugarcrm/test/test_account_sugarcrm.yml	2011-07-25 12:06:20 +0000
@@ -0,0 +1,38 @@
+-
+  In order to test Importing user and Accounts from sugarCRM into OpenERP,
+  I use a sugarCRM account and import the user and account details and store them as user and partner.
+- |
+  I give sugarCRM Username, Password and url for import from sugarCRM,after that tick on account checkbox for import user and account.
+-
+  !record {model: import.sugarcrm, id: sugar_account}:
+    username: admin
+    password: admin
+    url: 'http://localhost/sugarcrm/soap.php'
+    opportunity: False
+    contact: False
+    account: True
+    meeting: False
+    call: False
+    email_history: False
+    document: False
+- |
+   I type email address specified in the field “Email address to notify”, This Email contain notification and information of start time and Finished time of Import.
+-
+  !record {model: import.sugarcrm, id: sugar_account}:
+    email_from: [email protected]
+    instance_name: sugarcrm
+- |
+  Now, I import the sugarcrm user and account data into openERP account module, the process is running in the background and email is send to the specify email address.
+-
+  !python {model: import.sugarcrm}: |
+    context = {}
+    context.update({'username': 'admin', 'url': 'http://localhost/sugarcrm/soap.php', 'password': 'admin','email_from':'[email protected]','instance_name':'sugarcrm'})
+    self.import_all(cr,uid,[ref('sugar_account')], context)
+    
+- |
+  I click on the Schedule Recurrent Imports for Recurrent Imports for specific interval.
+-
+  !python {model: import.sugarcrm}: |
+    context = {}
+    context.update({'username': 'admin', 'url': 'http://localhost/sugarcrm/soap.php', 'password': 'admin','email_from':'[email protected]','instance_name':'sugarcrm'})
+    self.import_from_scheduler_all(cr,uid,[ref('sugar_account')], context)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to