robotframework

Publish Multiple Robot Test Results From Jenkins Pipeline

三世轮回 提交于 2019-12-06 02:35:39
问题 I have a Jenkins 2.0 Pipeline script that runs a two separate suite of Robot tests. The script tries to publish both test suite results, however the publisher over-writes the first publish, with the last one. node('robot') { ... publishTestResults('journey') publishTestResults('regression') } void publishTestResults(String type) { step([ $class : 'hudson.plugins.robot.RobotPublisher', outputPath : 'portfolio-app\\target\\robot-output\\' + type, passThreshold : 100, unstableThreshold: 100,

Is there a way to route to html files with Vue router?

谁说我不能喝 提交于 2019-12-05 22:09:29
Hello I am using VueJS and the webpack template. I have a bunch of components I can easily display with Vue Router. However, my organization uses Robot Framework for testing and we generate an HTML page using the command: python -m robot.testdoc /tests/directory /destination.html This is basically how I am using the router: import Vue from 'vue' import Router from 'vue-router' import Main from '@/components/Main.vue' import Component1 from '@/components/Component1.vue' import Component2 from '@/components/Component2.vue' Vue.use(Router) export default new Router({ routes: [ { path: '/', mode:

How to Upload file from windows directory using selenium2library and Robot Framework

亡梦爱人 提交于 2019-12-05 22:01:21
Can someone help me How to Upload file from windows directory using selenium2library and Robot Framework.I have tried using Choose File command in selenium2library but I am getting error as File doesn't exist in local file system.I am not sure whether directory path is not considered or any other issue. Please give me valid code or any alternate solution.Any help would be appreciated.Following is the command I have tried Choose file xpath = //input[@firmware-upgrade='firmware'] /Downloads/Cambium_Builds/Falcon/ePMP1000-Hotspot-2.5.1-b3.tar HTML tag is ` ` Thanks every one for your answers and

How to use REST library in Robot Framework?

*爱你&永不变心* 提交于 2019-12-05 20:05:43
问题 Does anybody know how to use the REST Library for Robot Framework? The library is available here http://code.google.com/p/robotframework-restlibrary/source/browse/trunk/RestLibrary.py. It seems like there is no documentation available. I tried something like this in Robot Framework but there is no response coming back from the request: REST Test Case Get https://maps.googleapis.com/maps/api/timezone/json?location=39.6034810,-119.6822510&timestamp=1331161200&sensor=true Response test Any ideas

How to execute JavaScript in Robot Framework

北城以北 提交于 2019-12-05 19:02:14
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 Harri From http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html#Execute%20Javascript : Note that, by default, the code will be executed in the context of the Selenium object itself, so this will refer to the Selenium object. Use window to

Use of “If statement” in robot framework

大憨熊 提交于 2019-12-05 18:42:56
How can we use if statement in robot framework. I would like to execute keyword only if it satisfies certain condition else it execute other code. This is described in the Robot Framework User Guide under the section Conditional Execution , where it mentions Run Keyword If and Run Keyword Unless among other solutions. Documentation for these can be found in the documentation for the BuiltIn keyword library . Here is a brief example: *** Test cases *** | Example | | ${result}= | Set variable | 42 | | Run keyword if | "${result}" == "42" | | ... | log | the result is 42 | | ... | ELSE | | ... |

Pass variables from python file to robot framework variables

守給你的承諾、 提交于 2019-12-05 16:44:35
I am assigning variables in robot framework as *** Variables *** ${TestNAME} test But can I pass variable value from python file? #test.py var = 'test' Is it possible to assign var to ${TESTNAME} ? If you have a file named "test.py" that has variables defined in it, you can import the variables using the robot variable file feature. Here's an example, using the pipe-separated format for clarity: *** Settings *** | Variables | test.py *** Variables *** | ${myTestName} | ${var} This works because settings are processed before the Variables table. Any variables in the python file can be

Import custom library from a different path in Robot Framework

余生颓废 提交于 2019-12-05 14:56:38
I have several test files in different folders (for different issues) and I want to use a separate folder that will contain all the Custom Libraries I use. All of the sub folders, including the custom libraries, will be in one master folder. How do I import the test library from the separated folder? Here is the folder hierarchy: Test Library -Test Suite1 -test1.txt -test2.txt -Test Suite2 -test3.txt -Custom Libraries -customlibrary.py Thank you. There are many ways. For one, just use the path. For example: *** Settings *** | Library | ../Custom Libraries/customlibrary.py Or, you can add Test

Unhandled error “Cannot find context with specified id” using Robot framework

拟墨画扇 提交于 2019-12-05 14:42:42
I have a problem when working with iframe using Robot framework and Selenium2Library. It throws error: WebDriverException: Message: unknown error: unhandled inspector error: {"code":- 32000,"message":"Cannot find context with specified id"} (Session info: chrome=55.0.2883.87) (Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 6.1.7601 SP1 x86_64) My test code is: Fill In Description ${description} Wait Until Element Is Visible ${FRAME} 40 Select Frame ${FRAME} wait until page contains element ${IFRAME BODY} Click Element ${IFRAME BODY} wait

In Robot Framework, what is the difference between a List Variable and a Scalar Variable containing a list?

有些话、适合烂在心里 提交于 2019-12-05 07:59:53
In Robot Framework, we can assign a list to a Scalar Variable or to a List Variable, as shown below: | @{list} = | Create List | a | b | c | | ${scalar} = | Create List | a | b | c | What is the difference between a List Variable and a Scalar Variable containing a list? Bryan Oakley In case of the assignment shown in your question, there is no difference. If you log each of those you'll get the exact same output. Note : this functionality was introduced in version 2.8 (see Using scalar variables as lists in Robot Framework User's Guide). The difference comes when you use the values. When you