Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How to connect to OpenERP server and make XML-RPC calls using JMeter?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
testloginload
1 Répondre
10388 Vues
Avatar
Luis Filipe Castanheira

Hi!

I'm trying to test out load behaviour on the functionalities of a custom module I've been developing with JMeter, but I'm not even getting authenticated correctly.

I've been following these instruction http://selvam4u.wordpress.com/2011/05/25/load-testing-openerp-with-jmeter/

I have the configuration as follows, but I keep getting an INTERNAL SERVER ERROR.

JMeter.png

Am I doing anything wrong? Do I have to enable xmlrpc somewhere and I didn't?

-----------------------------------------------

Message error on logs:

2014-07-01 15:09:01,067 1206 INFO ? werkzeug: 193.136.201.121 - - [01/Jul/2014 15:09:01] "POST /xmlrpc/common HTTP/1.1" 500 -
2014-07-01 15:09:01,074 1206 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 159, in run_wsgi
    execute(app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 146, in execute
    application_iter = app(environ, start_response)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 417, in application
    return application_unproxied(environ, start_response)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 403, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 224, in wsgi_xmlrpc_legacy
    params, method = xmlrpclib.loads(data)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1135, in loads
    p.feed(data)
  File "/usr/lib/python2.7/xmlrpclib.py", line 557, in feed
    self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 1, column 12
2014-07-01 15:09:01,084 1206 INFO ? werkzeug: 193.136.201.121 - - [01/Jul/2014 15:09:01] "POST /xmlrpc/object HTTP/1.1" 500 -
2014-07-01 15:09:01,089 1206 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 159, in run_wsgi
    execute(app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 146, in execute
    application_iter = app(environ, start_response)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 417, in application
    return application_unproxied(environ, start_response)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 403, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 224, in wsgi_xmlrpc_legacy
    params, method = xmlrpclib.loads(data)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1135, in loads
    p.feed(data)
  File "/usr/lib/python2.7/xmlrpclib.py", line 557, in feed
    self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 1, column 12
2014-07-01 15:09:04,574 1206 DEBUG ? openerp.service.cron: cron0 polling for jobs

The second part of the error is from the part I am trying to read from res_partners with the following XML calling http://193.136.200.176:8069/xmlrpc/object:

<?xmlversion="1.0"?>
<methodCall>
    <methodName>execute</methodName>
    <params>
        <param>
            <value><string>may_9</string></value>
        </param>
        <param>
            <value><int>UID</int></value>
        </param>
        <param>
            <value><string>admin</string></value>
        </param>

        <param>
            <value><string>res.partner</string></value>
        </param>
        <param>
            <value><string>read</string></value>
        </param>
        <param>
            <array>
                <data>
                    <int>1</int>
                </data>
                <data>
                    <int>2</int>
                </data>
            </array>
        </param>
        <param>
            <array>
                <data><string>name</string>
                </data>
                <data><string>title</string>
                </data>
            </array>
        </param>
    </params>
</methodCall>

0
Avatar
Ignorer
DelphineL

Hello, what are the error messages in the log?

DelphineL

Hi, Could you try a test with replace  <value><int>UID</int></value> by  <value><int>1</int></value> 1 =  admin's id

DelphineL

after testing it works for me: 1) I replaced the UID of my user ID like my previous message 2) Correct the error in the XMLRPC Partner by adding </ data> after <data> <int> 2 </ int> 3) activated the module api web openerp (I do not know if it has an influence)

Avatar
DelphineL
Meilleure réponse

after having tested your file xmlrpc partner, replace <? xmlVersion = "1.0"?> 
with <? xml version = "1.0"?> with a space between xml and Version

0
Avatar
Ignorer
Luis Filipe Castanheira
Auteur

I just found it... And this is where the error was. After two days of banging my head agains my computer, somehow, copy paste messed with the format and erased that space! :) Thanks!

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How can I do load test in OpenERP?
test load virtually
Avatar
Avatar
1
mars 15
9457
Login username with space at end cannot login
login
Avatar
Avatar
1
sept. 24
1859
How to CRUD in Odoo Website through Odoo Studio?
test
Avatar
Avatar
1
janv. 23
4864
How can I test opening view?
test
Avatar
0
oct. 22
2157
test
test
Avatar
0
août 22
3
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now