Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
testloginload
1 Odpoveď
10372 Zobrazenia
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
Zrušiť
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
Best Answer

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
Zrušiť
Luis Filipe Castanheira
Autor

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!

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
How can I do load test in OpenERP?
test load virtually
Avatar
Avatar
1
mar 15
9453
Login username with space at end cannot login
login
Avatar
Avatar
1
sep 24
1859
How to CRUD in Odoo Website through Odoo Studio?
test
Avatar
Avatar
1
jan 23
4859
How can I test opening view?
test
Avatar
0
okt 22
2152
test
test
Avatar
0
aug 22
3
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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