Skip to content

Assertion methods integration with Reportium assert #24

@kulin-sitwala

Description

@kulin-sitwala

Hi Team,

Recently, I had a query from one client for Quantum Reportium and I think this is an important feature that needs to be added in our framework.

When we use any of the assertion methods of QAF like:
getLfgHomeImage().assertPresent("LFG Homepage is displayed");
getLfgHomeImage().verifypresent("LFG Homepage is displayed");

Then there should be entries in the reportium using this line of code:

QuantumReportiumListener.getReportiumClient().reportiumAssert("Home page was displayed", true);

If this can be implemented in QAF jar in
protected void report(String op, boolean outcome, Object... args) { getReporter().addMessage(WebDriverCommandLogger.getMsgForElementOp(op, outcome, args), (outcome ? MessageTypes.Pass : MessageTypes.Fail)); }

in QAFExtendedWebElement class. A condition could be added for Reportium client. because this method is getting called in all the assert or verification methods.

Thanks,
Kulin

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions