Category : robotframework

How to add variable to your declared variable in robot framework? I have a lot of table variables in my script. Below is a sample *** Variable *** ${Amount1_Column} xpath=//div[@id=’*GFtable***0***EventDealDataValidationMask***report***unfixedData’]/table/tbody/tr[1]/td[4]/div/table/tbody/tr[3]/td ${Amount2_Column} xpath=//div[@id=’*GFtable***0***EventDealDataValidationMask***report***unfixedData’]/table/tbody/tr[1]/td[6]/div/table/tbody/tr[3]/td ${CounterParty_Column} xpath=//div[@id=’*GFtable***0***EventDealDataValidationMask***report***unfixedData’]/table/tbody/tr[1]/td[90]/div/table/tbody/tr[3}]/td ${CurrencyPair_Column} xpath=//div[@id=’*GFtable***0***EventDealDataValidationMask***report***unfixedData’]/table/tbody/tr[1]/td[76]/div/table/tbody/tr[3}]/td ${SpotRate_Column} xpath=//div[@id=’*GFtable***0***EventDealDataValidationMask***report***unfixedData’]/table/tbody/tr[1]/td[13]/div/table/tbody/tr[3]/td Then in my test cases I use get element count to count my table row and use ..

Read more

I get email body from this code. Email_Verification Open Mailbox host=imap.googlemail.com [email protected] password=xxx ${LATEST} = Wait For Email [email protected] timeout=300 ${HTML} Get Email Body ${LATEST} Log Many ${HTML} Close Mailbox But the email body display in base64 as below –000000000000b0c6fa05c4db28e0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 4LmD4Lir4Lih4LmI4LiX4LiU4Liq4Lit4LiaDQo= –000000000000b0c6fa05c4db28e0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 4LmD4Lir4Lih4LmI4LiX4LiU4Liq4Lit4LiaDQo= –000000000000b0c6fa05c4db28e0– It’s ..

Read more

I saved one output in Test1.txt like below. Test1.txt:- sq.service – SYSV: sudha md server daemon Loaded: loaded (/etc/rc.d/init.d/md; bad; vendor preset: disabled) Active: active (running) since Wed 2021-01-13 21:06:14 JST; 5 months 0 days ago docs: man:systemd-mon-gator(8) And I got the output like that by executing the command. Test Cases Check the Regular Expresssion ..

Read more

I saved one output in Test1.txt like below. Test1.txt:- sq.service – SYSV: sudha md server daemon Loaded: loaded (/etc/rc.d/init.d/md; bad; vendor preset: disabled) Active: active (running) since Wed 2021-01-13 21:06:14 JST; 5 months 0 days ago docs: man:systemd-mon-gator(8) And I got the output like that by executing the command. ***Test Cases*** Check the Regular Expresssion ..

Read more

I’m trying to capture the results of my logging to do a diff in the end and verify the results are what as expected on Robot test. I’ve tried adding the following: stdout=/path/to/file however that only seems to print python ‘print()’ statements and doesn’t actually utilize my loggers. I was wondering, if I do the ..

Read more

I am trying to store in list using robotframework, ${Cmd_Output}= Get File Test.txt sleep 2 @{match_active_status}= Get Regexp Matches $(Cmd_Output) (?s)* Output save in file Test.txt String output= ==== Network ==== Mode standalone Bypass Unit disable Bypass Unit N/A System Status active System Bypass Reason none Host Redundancy disable Cards list : |Slot |Card Type ..

Read more