robotframework

Robot framework: Using faker to generate a prefix string for account data

守給你的承諾、 提交于 2019-12-08 09:35:15
问题 I'm writing test cases that test the functionality of adding an account. This means that I need to generate data for the Account's: Name, email, reference no and order no. I was thinking that for each of these fields I could just generate a random word or number with a prefix so that I can use a script to delete these entries from the database regularly. The issue is, I'm not sure how to add prefixes or indeed just use most of faker's keywords. At the minute I'm using the md5 keyword to

Can't fill in the Hidden text area element

十年热恋 提交于 2019-12-08 09:14:15
问题 F1, need some help or hints with Hidden element using Robotframework. The problem consist that to fill any text in the text area, I need to change the state of text area from display:none; to display:block; Needed text area for input Code that I see from WebDev Tool The code itself: <div class="col-md-12"> <div class="cazary" style="width: 664px;"> <div class="cazary-commands-wrapper"> <ul class="cazary-commands-list"> <li unselectable="on" title="Size" class="cazary-command-fontsize">Size<

Robot Framework-RIDE,Import Java Libraries

*爱你&永不变心* 提交于 2019-12-08 09:12:46
问题 Have Installed Robot Framework IDE. After installation, how to import jar files into RIDE. Have tried to add jar through add import option present in the test suite. but its not being recognized(Keywords not found error). If we import the jar files should the test run in execution Profile as Jybot? When i try to run the test case as Jybot,am getting info as follow: Robot Framework installation not found. To run tets, you need to install Robot Framework separately. See http://robotframework

Using Variables in Variable definition

谁都会走 提交于 2019-12-08 08:41:16
问题 I am trying to get variables into variables but it wont work. I searched google and tried a lot of stuff but it did not wor out. I hope this question ist not "dumb": What am I doing wrong ? *** Settings *** Library SeleniumLibrary Library OperatingSystem *** Variable *** ${year} Get Time return year ${month} Get Time return month ${day} Get Time return day ${output} ${CURDIR}\Testing\Tests\SRV\csdb_@{year}-@{month}-@{day}.log *** Testcases *** Textfile should have a line saying the service is

How to pass object-variables to test cases in RobotFramework?

↘锁芯ラ 提交于 2019-12-08 08:37:15
问题 Here's what's going on (generically) with my python-based test. ============================================================================== ***Settings*** Variables variable_file.py Library library.py ***Test Cases*** A Test Case myTest ${some string} [I want to pass an object here] ============================================================================= At the end, I want to pass an actual class object which has been defined inside my variable file. I've looked far and wide without

How to skip test case in Robot framework using keyword

浪子不回头ぞ 提交于 2019-12-08 08:09:37
问题 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' 回答1: 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

Register Robot Framework listener within Python library

三世轮回 提交于 2019-12-08 07:07:13
问题 Robot Framework's Listener feature is great for adding optional pre/post-processing that can be invoked on the command line, e.g. pybot --listener myListener.py mySuite.robot . However, I am creating a Python library for Robot Framework, and I would like to automatically register its listeners without needing to be invoked on the command line, so that those listeners are always used when my library is imported (I want the keywords and listeners to work together). Is there a way to register a

How to handle try catch exception in ride robot framework?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 06:38:31
问题 I'm using RIDE robotframework, i want to handle an exception when the application is crashed i close it then open a new instance of it. *** Settings *** Library SikuliLibrary *** Variables *** ${openProject} sikuli_captured\\Emna\\openProject.png ${DataBaseSTProject} sikuli_captured\\Emna\\DataBaseSTProject.png ${testSession} sikuli_captured\\Emna\\testSession.png ${menu} sikuli_captured\\menu.png ${fileName} sikuli_captured\\Emna\\fileName.png ${save} sikuli_captured\\Emna\\save.png *** Test

Unable to run parallel robotframework tests using pabot in pycharm

早过忘川 提交于 2019-12-08 06:23:45
问题 So, fairly new to robot framework. Using Pycharm, I have created a test suite which has two directories. One for test scripts and one for resource files. The tests all run fine sequentially, when using: robot test_directory or pybot test_directory I need to now run them in parallel. I have found and installed pabot using: pip install -U robotframework-pabot In the Pycharm terminal I run the following: pabot test_directory I get the following error: ** Traceback (most recent call last): File

How can we set a variable such that it can be used in a different test suite?

你离开我真会死。 提交于 2019-12-08 06:15:31
问题 I need to set an variable in testSuite#1. Use the above variable in testSuite#2. Do we have any keywords to do it? Can we export it at command line? 回答1: Use BuiltIn's Set Global Variable. This should be avoided whenever possible, but is sometimes necessary. Set Global Variable ${MYPROJ_ADMIN_PASSWORD} supersecret123 回答2: This is not a very good idea, because you end up with a dependency between two suites, and a dependency on the order that the suites are run. That being said, there are a