cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to test controller functions [SAPUI5]

former_member614481
Participant
0 Likes
963

Hello,

What framework shall be used in order to test controller files - functions ?

For now the combination that i have found is sinon + QUnit - but i dont really like it.

Is there a better combination ?

View Entire Topic
ashwink02
Explorer
0 Likes

Hi Roman,

You can use OPA5 framework for most of the controller function. You can use Qunits to cover the functions which might not be possible with OPA5 framework.

Regards,

Ashwin Kumar

former_member614481
Participant
0 Likes

ashwink02, Thank your for your comment!

Would OPA5 work on a multi-page (details etc.), multi-tab application ?

QUnits seemingly only works on static functions i.e. formatter.js functions.

Best Regards,

Roman

ashwink02
Explorer
0 Likes

Hi Roman,

Yes OPA5 works on multi-page application also.Check the below blog for reference.

https://blogs.sap.com/2018/10/03/testing-your-sapui5-application-with-opa5/

Hope this is useful 🙂

Regards,

Ashwin Kumar