In Cucumber, we can directly validate the database table content in tabular format by mentioning the values in below format:
| Type | Code | Amount |
| A | HIGH | 27.72 |
| B | LOW | 9.28 |
| C | LOW | 4.43 |
Do we have something similar in Robot Framework. I need to run a query on the DB and the output looks like the above given table.
How can we validate tabular data in robot framework?
2.4k Views Asked by Deepti K At
1
There are 1 best solutions below
Related Questions in DATABASE
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- microsoft odbc driver manager data source name not found and no default driver specified
- Cloud Connection with Java Window application
- Automatic background scan if user edit column?
- Jmeter JDBC Connection Configuration Parametrization of Database URL for accessing SQL Database
- How to grant privileges to current user
- MySQL: Insert a new row at a specific primary key, or alternately, bump all subsequent rows down?
- Inserting and returning autoidentity in SQLite3
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- SQL - Adding a flag based on results within a query - best practice?
- Android database query not returning any results
- Developing a search and tag heavy website
- Oracle stored procedure wrapping compile error with inline comments
- Problems communicating with mysql in php
Related Questions in BDD
- Behat doesn't load extensions?
- How can i keep my database clean between my scenarios?
- How do I test array element types using BDD Javascript?
- Is there a way to create a custom cucumber formatter that prints the Given, When and Then steps
- Behat / Mink error Snippets for the following steps not generated
- Unit Test Adapter threw exception: Object must implement IConvertible..in BDD specflow framework
- Instantiating PageObject instances from within Cucumber StepDefinitions
- SpecFlow Ambiguity in bindings
- Socket.IO server not receiving message from client
- In “Given-When-Then” style BDD tests, is it OK to have multiple “When”s conjoined with an “And”?
- How can we validate tabular data in robot framework?
- Simple Spec That Validates_Associated
- Providing Examples in more than 1 row Specflow
- Cucumber Testing, Counting Page Elements
- .settings not working 'mocha' in Microsoft Visual Studio Code on Windows
Related Questions in ROBOTFRAMEWORK
- How does Robot's Telnet library work?
- Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments
- What does "--dryrun" do in Robot Framework pybot command?
- How to access second element using relative Xpath
- ClassFormatError: Invalid method Code length 85551 in class file pdfminer/glyphlist$py
- Robot Framework, Selenium2Library two field with same id
- Distinguishing between elements with the same name in RobotFramework
- Is it possible to change my web application server date using Robot Framework & RIDE?
- How can we validate tabular data in robot framework?
- How to embed arguments into Robot Framework keyword name
- Want to filter out failure Message from my robot framework output files
- [Robot Framework][RIDE]error: [Errno 10061] No connection could be made because the target machine actively refused it
- Can Robot Framework Support External Variables?
- How to remove white space in a string with Robot Framework?
- Robot Framework - customise log output
Related Questions in CUCUMBER-JVM
- i am unable to run cucumber jvm test in selenium grid in parallel
- Cucumber: undefined steps in cucumber-jvm
- Jenkins cucumber reports to show on main job's page
- Facing issues while running cucumber with serenity
- How can we validate tabular data in robot framework?
- Running a whole scenario before another scenario
- Facing issues while navigating between the reports in Serenity
- How to add custom text in the junit report for a cucumber-jvm run
- Image error observed while trying to use Sikuli with JRuby and Cucumber
- Conditional Inputs?
- Allure and screenshots
- Best way to reference a variable in all classes?
- Spring Batch : How to instantiate "Step" scope bean in Cucumber Testing?
- SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()? (Selenium)
- how to get current Cucumber feature file name at runtime using Java
Related Questions in GHERKIN
- Is there a way to create a custom cucumber formatter that prints the Given, When and Then steps
- Test class not found in selected project
- How to make step argument dependent on configuration?
- Specflow Testing
- Specflow Given When Then BUT?
- In “Given-When-Then” style BDD tests, is it OK to have multiple “When”s conjoined with an “And”?
- Calabash (ANDROID) - passing in compound statement values, how?
- How can we validate tabular data in robot framework?
- SpecFlow - Execute ScenarioOutline from Visual Studio Context Menu
- Specflow/Gherkin: How to handle bad data
- Grouping steps or concatenating scenarios in Gherkin
- How to tell behave at the command line about multiple steps/ directories
- Automatically add a tag for a Java Cucumber method
- How to specify dependency between multiple given, when or then in cucumber-jvm
- How do describe a simple process in Gherkin-style?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No, there is nothing built in to do exactly what you say. However, it's fairly straight-forward to write a keyword that takes a table of data and compares it to another table of data.
For example, you could write a keyword that takes the result of the query and then rows of information (though, the rows must all have exactly the same number of columns):
Then it's just a matter of iterating over all of the arguments three at a time, and checking if the data has that value. It would look something like this:
Even easier might be to write a python-based keyword, which makes it a bit easier to iterate over datasets.