当前,我有一个包含数据表的功能文件:
Scenario: User successfully calculates total calories with calculator
Given user is on “https://www.freedieting.com/calorie-calculator” page
When the user completes the form:
| Age | 20 |
| Gender | male |
| Weight | 74 |
| Height | 173 |
| Exercie level | Daily |
Then total calories table is displayed
如何从表格中获取值,例如年龄-> 20,性别->男性,等等。在Java中,当我想做类似的事情时,我将Map作为参数,然后执行map.get(“ Age”),map.get(“ Gender”)。如何在红宝石中做类似的事情?