robotframework

Stuck with creating Keyword library using Java in Eclipse and using that JAR file in RIDE

吃可爱长大的小学妹 提交于 2019-12-07 15:12:36
I'm new to ROBOT framework and must create library keyword using java and utilize the JAR files in RIDE editor. I have followed the below steps. But still have confusions in where to start up. Please help me to achieve this. Steps: 1) Installed Python, wxPython, pybot, RIDE, selenium2library successfully and I'm able to work with RIDE using predefined keywords. 2) For creating own java library, Installed Eclipse Mars, Java, ROBOT IDE manually using the link https://github.com/NitorCreations/RobotFramework-EclipseIDE/wiki/Installation The question here is, Anything i'm missing to install? How

Test an application behind a proxy server using Robot Framework and Selenium2Library

人走茶凉 提交于 2019-12-07 15:06:38
I'm testing a web application behind a proxy server using both Robot Framework and Selenium2Library. In fact when the proxy is enabled in browser connexion setting , the keywords "Open browser" failed when I disabled the Proxy server option , the browser windows is getting opened but i am not able to visit the application. This happen with both IE en ff driver. I want to know if there is any additional configuration to solve this problem? The Selenium2Library documentation gives an example of using a proxy using the Create Webdriver keyword: | | # use proxy for Firefox | | ${proxy}= | Evaluate

How to execute JavaScript in Robot Framework

寵の児 提交于 2019-12-07 12:42:03
问题 Below is my code. When I run this, it shows a WebDriverException. How do I execute JavaScript code in Robot Framework? This, return $(arguments[0]).data('${ToolTip}').options.title code is doing well in -java Selenium web driver. Mouse Over ${CreateTask} Execute JavaScript return $(arguments[0]).data('${ToolTip}').options.title 回答1: From http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html#Execute%20Javascript : Note that, by default, the code will be executed in

how to insert utf8 characters into oracle database using robotframework database library

Deadly 提交于 2019-12-07 08:23:39
问题 I have a robot script which inserts some sql statements from a sql file; some of these statements contain utf8 characters. If I insert this file manually into database using navicat tool, everything's fine. But when I try to execute this file using database library of robot framework, utf8 characters go crazy! This is my utf8 included sql statement: INSERT INTO "MY_TABLE" VALUES (2, 'تست1'); This is how I use database library: Connect To Database Using Custom Params cx_Oracle ${dbConnection}

accessing static class variables with robotframework?

岁酱吖の 提交于 2019-12-07 05:09:27
Is it possible to access static class variables from a library loaded into robot framework? For example, say I include the following python library in my .robot file: foo = 'value' class MyClass(self): bar = 'value' Is there a way in the .robot file that included it to refer to foo or bar? You can get at these by getting a reference to the raw python module with Get Library Instance , and then use extended variable syntax to get the values. For example, consider a library named MyLibrary.py: # MyLibrary.py foo = "this is foo" class MyClass(object): bar = "this is bar" You can access foo and

How to read required key, values from json response and store it in json format using robot framework?

做~自己de王妃 提交于 2019-12-07 02:58:25
I am trying to read the required key and values from JSON Response and store it in JSON file. I have a sample simplified json format as below: ${API_Output}= { "data": { "resources": { "edges": [ { "node": { "tags": [], } }, { "node": { "tags": [ { "name": "app", "value": "e2e" }, { "name": "Cost", "value": "qwerty" } } }, { "node": { "tags": [ { "name": "app", "value": "e2e" }, { "name": "Cost", "value": "qwerty" }, { "name": "test", "value": "qwerty" } } } ] } } } Here, I am reading the tags name and value which are present. I have used the dictionary key "set to dictionary" but that prints

NUMPAD 5 for right click on mac is not working using robotframework

二次信任 提交于 2019-12-07 02:43:28
I am using robotframework for automation of desktop application. I'm trying to do a right click on Mac Sierra and then use send keys to select the items generated on the context menu. I have activated mouse keys settings from the accessibility setting so that NUMPAD 5 will behave as a right click on mouse pointer. The problem is when I use this command it actually does a right click but when I try to use the send keys command the context menu disappears. So, I'm not able to select items from the context menu. Here is the code for right click: public void pressCtrl(String key) throws Exception

Unable to run test on RIDE --monitorcolors option not recognised

风格不统一 提交于 2019-12-06 23:44:40
I have been trying to run tests on RIDE (Robot Framework IDE). It used to warn about --monitorcolors option being depricated. In the latest install, it is unable to recognise. How do I change the options to make my tests run? Thanks The --monitorcolors option has been replaced with --consolecolors in Robot Framework version 2.9. The usage documentation for --consolecolors is here . You must be using the old option somewhere - check the Arguments string in the Run tab in RIDE. 来源: https://stackoverflow.com/questions/33948948/unable-to-run-test-on-ride-monitorcolors-option-not-recognised

How to use robot framework with python in eclipse and How to run the Robot framework tests in eclipse using python interpreters?

怎甘沉沦 提交于 2019-12-06 18:06:21
问题 I have installed robot framework plugin into my eclipse. I have added python plugins and interpreter in the path, python files are executing successfully. I have added built-in library index file in the project, created robot text file and i want to execute the test but i right click on the test and try to run as, it is not giving the run configurations. I tried F9 for execution but it is not working. I think there is the separate set up required for running the robot tests in eclipse. my

How to skip test case in Robot framework using keyword

时间秒杀一切 提交于 2019-12-06 16:05:55
i'm trying to skip a specific test case using keyword, is there are any keyword to do that ? what i'm trying to do is to check if file name have "skip" word then i want to skip it. is there are any keyword like : Skip Test , Skip Execution If ... @{regex}= Get Regexp Matches ${TEST NAME} Skip ${lenght}= Get Length ${regex} Skip Execution If '${lenght}'>'0' Ideally, tests that should not be run should be excluded from the run using tags or other means. Another option is to still run the tests, but simply check for your skip condition at the start of the test and pass the test without executing