How to do Automation Testing on Openerp or Odoo? - testing

I want to test odoo modules with the help of Automation Testing Tools.
How can i do that, pls give me suggestion.
Is there any automation testing tool available for odoo project testing?
Thanks in advance.

**You can use selenium testing tool & write a script in it
Also u can do YML testing by writing YML script in test files of an OpenERP or ODOO
**
https://doc.odoo.com/6.0/developer/5_16_data_serialization/yaml_serialization/

You can try open source tools like Selenium.
Additionally, I found this slideshare presentation,
http://www.slideshare.net/openobject/how-to-develop-automated-tests
...which talks about run-bot.

Related

Katalon - export recorded test script to java/junit

Is there an option to export recorded test script to Java/JUuit(similar to slenium IDE) in Katalon studio? Because the application I'm working on is compatible only with IE; so I couldn't use selenuim IDE. so I'm forced to find someother tools to play/record sessions.
Appreciate your help in advance! Thanks!
As of version 4.8 Katalon Studio does not support export test cases to other frameworks. But if you want more control on your project, you can modify test cases directy in the Script Mode using Groovy/Java. It is also possible to import 3rd party Java libraries to your project if need be.
After creating the test case with some steps, we could view the script and adjusting it, for examples: https://docs.katalon.com/display/KD/Test+Case+Script+View
From here, we could add more codes to handle our testing flows.
However, since the code uses some Katalon libraries, so it might not posible to copy the script and run somewhere else.
you can export code into java/ python using Katalon browser plugin. Just import existing test case recording into the plugin and click on "export" option.
Yes you can export it Java (Junit, TestNg), python, C#, Ruby.
Download the chrome pluging
https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid
Follow the guide screen
Create a Maven Java project, create a new Test class file and copy paste the code and run the project to test the browser test.
Done !
You can record your test and export in the following language and framework:
C#
Java
Python
Robot Framework
Ruby
It is an extension for chrome like Selenium IDE
you can find it here

Automated testing tools available for odoo

Is there any automated tool available for ODOO? Also, how does the YML File Structure work to use builtin add-ons in ODOO.
Check runbot in https://github.com/odoo/odoo-extra repo.
This repository contains the source code of Odoo testing bot runbot.odoo.com. Please have a look in the runbot/ directory.
It may be help you.
The Odoo Community Association uses TravisCI to perform tests on each build of their projects. The tooling that makes that possible is the Maintainer Quality Tools project, and is suitable to be used in your own Odoo projects.

TestCafe framework usage

Does anyone have the exact idea on Devexpress TestCafe tools?
What I have found that "User can get the JavaScript codes, which has been created on the test page at the time of recording. User can directly copy-paste those codes in any other projects."
But I am not sure that if a user can execute his/her own project in TestCafe or not. Please help.
TestCafe is a functional web testing framework. It is intended for creating and performing functional web tests. You can learn more about functional testing and TestCafe in particular from these links:
Unit tests vs Functional tests
TestCafe Documentation
TestCafe Studio, a cross-platform IDE for end-to-end web testing
What is the difference between a paid and an open-source TestCafe version? What is TestCafe Studio?

Selenium nightly regression

I'm currently developing a new set of regression tests for an interface using Selenium. I was wondering if it's possible to do a type of batch that runs during the night and which could launch a set of tests (and, i don't know... maybe configure some stuff at the same time). Does anyone know how to do this, or if there is a tool for this that integrates with Selenium?
Thanks!
You could use Jenkins/Hudson, that is a continuous integration tool. It has addons as well for Selenium.
More info here.
Jenkins, Hudson, CruiseControl or TeamCity will all be very easy to set up with Selenium.

How to use Selenium IDE testing tool?

I am a beginner to testing and I have to use Selenium IDE in my project.
Can anyone help me in gaining the starting stuff, links containing detailed demo on Selenium, and how to run test cases using Selenium IDE tool?
Here is a tutorial that might help you.
There are a couple of good videos online as well, an example one here
Here is very good material about selenium IDE. Described selenium IDE commands with proper practical examples.
Follow the link from where you can start up with selenium IDE and go on further
http://docs.seleniumhq.org/docs/02_selenium_ide.jsp
It will be very helpful for you.