Adding messages to log file - RFT

Most of the RFT (Rational Functional Tester) users in the initial stages will get question in mind when they see the auto-generated log after executing their Functional script ... i.e
How to add more information/messages to log ? How to change logs ?
Its so simple. RFT provides the following functions to customize your final log file after executing the functional script.
We know that the logs can maintained in different ways in RFT say TestManager Log, HTML Log, or Text Log etc. What eve the kinda log we are using we can add our general messages or test status results say PASS / FAIL to the log file.
RFT provides the following functions to add more messages
Function name - Usage Example
logInfo - logInfo("Login button is clicked. - PASS");
logTestResult - Ex : 1
logTestResult("Text buffer comparison",TextField_text.equals(urloginName));
Ex : 2
if(getText_login.equals(UrloginName))
{
logTestResult("Text buffer comparison", true);
}

logError - logError("Exception e = "+e.toString());
logWarning - logWarning("Your warning message goes here.");


0 comments to "Adding messages to log file - RFT"

Post a Comment

Whoever writes Inappropriate/Vulgar comments to context, generally want to be anonymous …So I hope U r not the one like that?
For lazy logs, u can at least use Name/URL option which doesn’t even require any sign-in, The good thing is that it can accept your lovely nick name also and the URL is not mandatory too.
Thanks for your patience
~Krishna(I love "Transparency")

Popular Posts

Enter your email address:

Buffs ...

Tags


Powered by WidgetsForFree