robotframework

How do you run tests in parallel using robot framework? Issues with Parallel Library

爱⌒轻易说出口 提交于 2020-06-23 07:35:13
问题 The below is the code present in parallel_tests.txt *** Settings *** Library Parallel *** Test Cases *** Runner Run Parallel Tests Hello World Hello [Tags] parallel Log Hello123 World [Tags] parallel Log World123 I am trying to execute this test case file from terminal using jybot as below: jybot parallel_tests.txt; I am getting the following error: No keyword with name 'Run Parallel Tests' found. How to execute both test cases Hello and World ,in parallel in robot framework using parallel

How do you run tests in parallel using robot framework? Issues with Parallel Library

落爺英雄遲暮 提交于 2020-06-23 07:35:07
问题 The below is the code present in parallel_tests.txt *** Settings *** Library Parallel *** Test Cases *** Runner Run Parallel Tests Hello World Hello [Tags] parallel Log Hello123 World [Tags] parallel Log World123 I am trying to execute this test case file from terminal using jybot as below: jybot parallel_tests.txt; I am getting the following error: No keyword with name 'Run Parallel Tests' found. How to execute both test cases Hello and World ,in parallel in robot framework using parallel

How to resolve ssl certificate errors for test automation in robot framework

让人想犯罪 __ 提交于 2020-06-16 20:25:51
问题 I'm getting ssl certificate error for our web application while running automation tests via robot framework. I tried below code with different chrome options but none of them worked that too with & without boolean value. ${list} = Create List --unsafely-treat-insecure-origin-as-secure=True ${args} = Create Dictionary args=${list} ${desired caps} = Create Dictionary chromeOptions=${args} open browser about:blank ${BROWSER} desired_capabilities=${desired_caps} Thank you in advance 回答1: Both

How to wait untill drop down values load in if else condition in robot framework

让人想犯罪 __ 提交于 2020-06-16 17:32:28
问题 My scenarios are: I have two drop down values side by side if the first drop down-selected based on the value selected second drop-down values will be loaded from that we need to pick one value. in one case from the first drop down if I select unknown or any legal purpose I should not go for the second dropdown. this is what the requirement I have please help me out. Below is the code I have written Variables ${var1}= Unknown ${var2}= Any legal purpose The user selects random NAICS code and

Robot Framework: How to merge old/new statuses using rebot --merge and keep the only one?

对着背影说爱祢 提交于 2020-06-13 06:31:04
问题 I'm using rebot tool to merge outputs after re-execution of failed tests. robot --output original.xml /path/to/dir/. robot --rerunfailed original.xml --output rerun.xml /path/to/dir/. rebot -o machine1.xml -l machine1.html --merge original.xml rerun.xml The same action is provided on few test machines. Test suite is identical and is executed against each VM. All VMs are considered as identical, however, they are not stable and I receive different results on each machine. I want to merge all

How to write a loop while in Robot Framework

前提是你 提交于 2020-06-10 03:32:56
问题 I make my first simple test case, and I have one problem. Is it possible write a loop in Robot Framework? I want to retrieve the value from the address and the address of the modified variable "i". I want to perform until such an address exists, because it is a row in the table. ${f1} A ${f_temp} B While ${f1} != ${f_temp} or While element xpath=//${i} is visible \ ${F_temp} Get Text xpath=//${i} \ ${i} ${i}+1 \ Run Keyword And Continue On Failure Should be equal ${f_temp} ${f1} Any ideas?

Can importing multiple Libraries and Keyword files in all the Test cases using Central Resource file can cause performance issues during execution

╄→尐↘猪︶ㄣ 提交于 2020-06-01 05:21:10
问题 Suppose I am creating a central Resource file with name - "Libraries and Resource Files.robot" like below: *** Settings *** Library Library1 Library Library2 Library Library3 Library Library4 Resource Keyword File1.robot Resource Keyword File2.robot Resource Keyword File3.robot Resource Keyword File4.robot if I am importing the same file in all of my Test suites like below: *** Settings *** Resource Libraries and Resource Files.robot Will it make any impact related to the performance of Test

Set value of ion-range slider to specific value

本小妞迷上赌 提交于 2020-06-01 05:07:50
问题 I am writing scripts in robot-framework with appium-library. I have range slider on my page and I need to slide it to some specific value. I tried swipe and it was working but I want to swipe slider to specific value. for e.g. lets say My current range value is 10 and I want to slide it upto 11. How can I calculate my end_x and end_y in this case. I also tried Execute Script where I was setting value to DOM element directly. But when I am running script its giving me error "WebDriverException

Robot Framework with Pycharm — Autocomplete doesn't work

天大地大妈咪最大 提交于 2020-05-30 07:58:32
问题 I've installed PyCharm with the robotframework support plugin. The .robot files are identified successfully and I was able to create a simple script and run it in pyCharm. However, my problem is that no keywords nor even the robotframework libraries (selenium2library) are recognized by pycharm in order to be autocompleted when typing them. I also have the intellibot plugin installed. Is there something that I'm missing? Is there another configuration file somewhere? Thanks, 回答1: Try to set up

How to create 2 Objects after importing python based libraries in Robot Framework

雨燕双飞 提交于 2020-04-30 06:30:46
问题 I am importing a python libraries and wanted to create two objects with different arguments and call method defined in the class. demo.py class Sample: def __init__(self,path,device): self.device=device self.path = path print(self.device) print(self.path) def getting_path(self): print(self.path) print(self.device) return self.path demo.robot =============== *** Settings *** *** Variables *** ${path} c: ${device} samsung ${path1} D: ${device1} samsung11 *** Test Cases *** Test Test_python