Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Food & Hospitality
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Guest House
    • Distribuidor de bebidas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consulting
    • Accounting Firm
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Trades
    • Handyman
    • Hardware y asistencia informática
    • Solar Energy Systems
    • Zapatero
    • Servicios de limpieza
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
testloginload
1 Responder
10366 Vistas
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
Descartar
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
Mejor respuesta

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
Descartar
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!

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
How can I do load test in OpenERP?
test load virtually
Avatar
Avatar
1
mar 15
9442
Login username with space at end cannot login
login
Avatar
Avatar
1
sept 24
1853
How to CRUD in Odoo Website through Odoo Studio?
test
Avatar
Avatar
1
ene 23
4840
How can I test opening view?
test
Avatar
0
oct 22
2147
test
test
Avatar
0
ago 22
3
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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