robotframework

How can I put colors in console output with Robot Framework

浪尽此生 提交于 2020-08-23 07:58:05
问题 I would like to put some colors in the console output of RobotFramework. I tried to use the console color codes like: ${message}= Set Variable hello world! Log To Console \\e[0;36;49m${message}\\e[0;39;49m (In a linux console, echo -e "\e[0;36;49mHello world!\e[0;39;49m" print Hello world! in cyan) (I also tried with one \ and also \033[31m, \033[0m, ... codes) But it doesn't work... So, is it possible to do something like: ${message}= Set Variable hello world! Log To Console ${message.red} I

WebDriverException: Message: unknown error: cannot process extension #1 from unknown error: CRX verification failed: 3

人盡茶涼 提交于 2020-06-25 04:47:50
问题 Given Robot framework with Selenium is ready to execute tests in Chrome And it worked so long time When I execute the tests in Robot framework with Jenkins now I receive an error "02:05:44 WebDriverException: Message: unknown error: cannot process extension #1 02:05:44 from unknown error: CRX verification failed: 3" Is it possible the upgraded Chrome and driver is not able to use older plugins? What should I do to solve this problem? Upgrade the plugin? Upgrade the driver (might be older

WebDriverException: Message: unknown error: cannot process extension #1 from unknown error: CRX verification failed: 3

落花浮王杯 提交于 2020-06-25 04:47:11
问题 Given Robot framework with Selenium is ready to execute tests in Chrome And it worked so long time When I execute the tests in Robot framework with Jenkins now I receive an error "02:05:44 WebDriverException: Message: unknown error: cannot process extension #1 02:05:44 from unknown error: CRX verification failed: 3" Is it possible the upgraded Chrome and driver is not able to use older plugins? What should I do to solve this problem? Upgrade the plugin? Upgrade the driver (might be older

Parsing Json in Robot Framework

为君一笑 提交于 2020-06-25 04:20:51
问题 { "data": [ { "name": "John", "mobile_phone": false, "carrier": "none" }, { "name": "Jim", "mobile_phone": true, "carrier": "T-Mobile" } ], "result": 0 } Hi, will it be possible to parse such JSON response in Robot Framework in a way where I will create kind of 'sub' list for each value ? I would like to separate John from Jim and get for example information about carrier for Jim only (via another get request later in test). Thanks ! 回答1: Say the source text (the json) is stored in a variable