Skip to Content

Qunit.html Unit Test for SAPUI5 Testing

I am trying to perform unit tests using Qunit for my sapui5 applications. I have gone through the walkthrough for qunit on sapui5 demokit.

After going through the above , what I understood is we write our test cases in a seperate test file (qunit.html or similar). But suppose my original app contains a view where I have multiple controls including input fields, buttons etc.

Now lets say for writing test case in qunit.html for a input field F1 inside View1 , do i need to create the input field in qunit.html again?? if yes , then does that means that all controls in View1 I will need to create in qunit.html again if I want to test them all or if they have dependency on each other. .If not , then how do I access the controls of View1 in Qunit.html file which I want to test.

Thanks & Regards

Amber

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers