I'm new with RobotFramework. I want to use the "Generate Random String" keyword but the system doesn't recognize it as a valid one, although I'm importing the String Library. Maybe is outdated? How can I update a "built-in" library in Robot Framework?
I'm using Python 2.7.10 with Pycharm CE
Sorry if I don't provide all the info needed, is my first question here.
score:2
What does your current test look like? Generate Random String
is part of the String library. While it is included when you install RobotFramework, you have to explicitly import the Library in the Settings section.
***Settings***
Library String
Keyword: Generate Random String length=8 chars=[LETTERS][NUMBERS]
Example usage from the documentation:
${ret} = Generate Random String
${low} = Generate Random String 12 [LOWER]
${bin} = Generate Random String 8 01
${hex} = Generate Random String 4 [NUMBERS]abcdef
Edit: Full example test:
*** Settings ***
Library String
*** Test Cases ***
Random Stuff
${ret}= Generate Random String
${low}= Generate Random String 12 [LOWER]
${bin}= Generate Random String 8 01
${hex}= Generate Random String 4 [NUMBERS]abcdef
The logs show the random values it gets: xcc3XUjZ, iuuvcqxvamam, 01000000, 4ce2. Without posting the script you're using and some of the error, we can't help further.
Reference: stackoverflow.com
POPULA POST
- Can't use "Generate Random String" keyword on Robot Framework
- How to use String.Replace String Using Regexp in Robot Framework to add colon after every 2 characters
- How to use Execute Javascript keyword in robot framework for clicking an element
- Robot framework - generate random data
- How to use 'Exit For Loop IF' keyword with multiple condition in Selenium Robot framework
- Use Selenium RC directly or Selenium with Robot framework
- robot framework - Clear Element Text keyword is not working
- Remove this " $ , . " of a string in Robot Framework
- How to build a keyword so I don't have to run login to all the features of a web in a test case of robot framework using seleniumlibrary?
- Handle multiple statements in Run Keyword If - Robot Framework
- Can I use Robot Framework in my Java program?
- Custom keyword robot framework selenium webdriver python "object has no attribute 'get_attribute' "
- Robot Framework - Selenium2Library - Choose File keyword with Edge Browser
- How to read a JSON for just one time and use it many time in the same robot file in Robot Framework
- How to generate a random string in ruby selenium that can be used in a text field
- How do I modify Google Chrome user agent string with Robot Framework
- [Python]Selenium keyword in Robot Framework to click span role="button" inside <a> tag
- Robot framework not picking up keyword implementation
- Can we use Robot Framework reporting mechanism in Selenium webdriver
- Selenium Webdriver - How to use Robot Framework with Java
- undefined keyword error in pycharm robot framework
- How to run a particular keyword multiple times in a test case of robot framework using seleniumlibrary?
- Choose file and Input Text keyword not working in Robot Framework Selenium
- Robot Framework - Run Keyword If with Execute Javascript
- extract a date from a STRING ROBOT FRAMEWORK
- How to use Robot Framework Scripts for Load Testing or performance testing
- Integer variable from a custom keyword in the robot framework
- How to generate "requirement.txt" file for robot framework project
- How to BREAK the loops in Selenium Robot framework 3.2.2 - Getting an error 'Break' is a reserved keyword
- Robot Framework : Keyword 'login_resources.Open Browser' expected 0 arguments, got 2
- Replace String with Regexp for a value fetched from MySQL Query in Robot framework
- Robot Framework cant find the element
- how to use a chrome profile with robot framework test
- How to use Browserstack Automate API for mark test status in ROBOT Framework PyCharm
- Running same keyword reset variable to none in robot framework
- How to verify text node in shadow root with robot framework keyword
- Handling with random button with Robot Framework
- Change Browser to use No Proxy Capabilities through Robot Framework
- I would like to use the same random string in various tests Selenium C#
- Can robot framework keyword can be executed in python console?
- Getting error for all the keywords in robot framework - Unknown Keyword error after restarting my machine
- Unable to find IN keyword in Robot Framework. How to use for loop without using IN keyword?
- How to write multiple conditions of if-statement in Robot Framework
- Using Robot Framework for ATDD
- Can I use Selenium IDE to generate Cucumber/Capybara steps?
- How to pass command line arguments (test data parameters) in Robot framework
- How to check if a text is in web page in Robot Framework and Selenium
- How to generate a random number
- How to get All Text in robot framework ?
- Create an Empty List and push data in an Iteration using Robot Framework
Featured post from same tag
- How to find xpath of an element which depends upon sibling class
- button is disabled but it is stil listens to click event
- Maven project crashing with no stacktrace or log messages with Selenium dependency
- TypeError: node.ownerDocument is null when using xpath in selenium
- Error calling a java class (Selenium WebDriver, TestNG)
- Is there any way to solve "java.lang.RuntimeException: Unable to find a free port" issue
- How to enter username and password in Facebook using class names
- How to skip a test and not fail it
- Selenium, python: How to extract <head> and all contained the <script> tags on it
- WebElement getText() doesn't work on Winium-Desktop
- Alternatives to using switch-case for selecting an element on a page
- Issue installing extension with Selenium remote Firefox webdriver in Saucelabs
- Rewrite click() method in Selenium 2 (python)
- trying to scrape a table from web using selenium in python. AttributeError: 'NoneType' object has no attribute 'find_all'
- How to execute a script on each row of a table with Selenium, Python