How to use RIDE with Robot Framework implemented in jython? - automation

Our Automation framework is implemented using the Robot Framework in Jython, can anyone suggest how I can use RIDE for writing my testcases. Currently I am using Eclipse as an editor.

RIDE and RobotFramework are two different things. RIDE is an IDE (Robot IDE) which talks to the Framework. If you want to use RIDE to create your testcases just download and install RIDE, and then run them within RIDE.
But because you're already using an IDE, just run the tests outside within a terminal using:
jybot TestCase.robot
or
robot TestCase.robot
You don't need RIDE in order to use the Robot Framework. They are two seperate things.
EDIT
According to the Git page of RIDE it states that:
RIDE runs only on the regular Python, not on Jython nor IronPython. Python 2.6 is the minimum version. Notice that similarly as Robot Framework, RIDE does not yet support Python 3. Notice also that on OS X RIDE requires 32-bit Python version.
So - in your case - you will not be able to use RIDE as you are working on a Jython Environment. If you want to absolutely use RIDE, you will have to switch over to Python. I would recommend Python 2.7.x

As clearly stated by #Goralight, the IDE and Robot Framework are two different topics. The IDE is used to Create the Robot files, RBF is used to Execute those Robot files.
An IDE like RIDE will also have functionality to start RBF from within the IDE but that is just a replacement of the commands mentioned by #Goralight. So in that sense it's an automation, not an integral part of the IDE.
Just as a side note, in case you're inan Eclpse based situation to have a closer look at RED that is a full featured IDE that can be loaded into your existing Eclipse instance as a Marketplace feature or as a full separate standalone download from GitHub.

Related

Scheduling through Selenium IDE

I am using Selenium IDE 3.17.0 in chrome for recording scripts.
Is there any way to schedule the scripts through Selenium IDE like run the scripts/tests every 1 hr.
i can obviously export the scripts/tests to some programming languages and run a scheduler quartz to schedule it but was looking if there is anything native built in Selenium IDE.
Best Regards,
Saurav
Unfortunately, scheduling is no longer supported in the latest version. If you do want though, you can install an older version and enable scheduling. For that, you would need to download a legacy version, see here.
Here is another good walkthrough
Steps:
Selenium IDE > Options > Schedule tests to run periodically
My suggestion would be to not run it using IDE.
I'd suggest doing this:
Create a WebDriver (or RC if you wish) test using your preferred language.
If using linux, just use crontab to set up a 15 minute cronjob. If using windows, use task scheduler to run your test.

QUERY: Using Karate DSL with javascript based UI automation framework

I want to know, if we can use karate with JS based UI automation framework. And if yes, what are the requisite to follow. Do we require maven in that case?
We have well matured UI automation Selenium based framework. We want to know, if we can integrate Karate DSL without using maven.
You might if you use the CLI (command line interface) provided by the stand-alone JAR / executable. Please read the documentation here: https://github.com/intuit/karate/tree/master/karate-netty#standalone-jar
Which means if you can call an OS command from node / JS - you can use Karate. But there are no guarantees - and you can assume the answer to your question is NO.
That said - we plan to have our own competitor to Selenium - but it will take a little more time: https://github.com/intuit/karate/tree/master/karate-core

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

How can we use Sikuli with Selenium in Python?

I know that how we can use Sikuli in Java. But I have some code in Python which is automating a web application, and I want to use Sikuli in it. I searched a lot on the Internet about how we can use Sikuli in Python. But I did not find any good resource related to it.
How can I import Sikuli script in a Python project in Eclipse? When I added the sikuli-script.jar file in the Python path in Eclipse and when I am trying to use
import * from sikuli
Then I am getting "there is no such type of module named sikuli".
Sikuli is a tool written in Java and hence you can't use it in your Python code as is. Instead you have the option to use it within a Jython environment, that provides you the Python syntax and enables running jar packages. If you are not using many third party Python libraries and mainly stick to the generic functionality, you shouldn't get into too much trouble transferring from pure Python to Jython.
There are clear instructions of how to use Sikuli with Jython on SikuliX official website. If you have any related questions, you can post the here.

Help with Selenium Webdriver download?

I have Selenium IDE and i want to install Selenium Webdriver.
1) Can anyone tell me where can i download selenium webdriver. i don't see any link available in the documentation.
2)Can i use selenium webdriver with PHPUnit? I see some materials saying php is not supported in selenium 2 however there are some download links available for phpbindings for webdriver what is this exactly?
3)If i have Selenium webdriver do i still need selenium server to run test cases in different browsers?
I would appreciate your answers...
I completely agree with you. They have a ton of documentation, but they do a horrible job of explaining what you actually need. It took me about 2 days to put all the pieces together. You will need a few things...
If you are running tests with C#, download NUnit, C# client drivers. Create a class library project in Visual Studio and reference the dlls (assemblies) for NUnit (for appropriate dotnet version) and the C# client drivers. Compile your class library. It should create a dll inside of the bin\Debug directory. Then go into NUnit, create a project, and then open your assembly in that bin\Debug directory. That should get you started.
If you're developing using Java, download JUnit (not NUnit) and then download the Java Client Drivers, and use Eclipse instead of Visual Studio. You can launch JUnit right from Eclipse.
I've only tried NUnit and JUnit before. But I'm sure PHPUnit can also be launched from Eclipse (educated guess). There seems to be the most documentation for Java and Python.. from experience, but I've been doing everything in .NET and I haven't had anything I couldn't solve.
The Unit Testing software isn't required, but the code the format add-ins for Firefox Selenium IDE will build the code for NUnit (C#) or JUnit (Java), etc... so most use those tools.
If you want to get some boilerplate code, go into Selenium IDE and turn on experimental features under options. Then export your C# code (or Java code) from the format menu after you've recorded your commands. It won't all convert 100%, so be aware of that. Just google from there to get questions answered.
One thing to watch out for... clickAndWait commands won't convert to click and wait in the code. You will either need to do an implicit wait or a thread.sleep wait after certain commands before you'll be able to access the next element if you're waiting for an action to occur. You will also want to turn on native events so you can fire certain JavaScript events. Your fire events won't work if the driver doesn't have this turned on. The WebDriver driver.
If you have any other questions, let me know.
You can download Selenium server as well as client driver from the following:
http://code.google.com/p/selenium/downloads/list
You can download "php-webdriver-bindings-0.9.0.zip" from the following source:
http://code.google.com/p/php-webdriver-bindings/downloads/detail?name=php-webdriver-bindings-0.9.0.zip
In C# context:
Now the better way of including packages in C# project is using nuGet. nuGet is packaging utility which when executed from its powershell command window, quickly downloads the dll files and links them to project. Below link details on how to use nUGet to install packages of selenium webdriver, selenium support and nUnit.
How to invoke/run different type of web driver browser using remote webdriver in C#