cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements v4: OPA5 - this._mServices[n].instance.destroy is not a function

former_member501331
Discoverer
0 Kudos
496

Hello experts,

I came across few issues in Fiori Elements v4: List Report / Analytical List Page OPA5 tests:

When I am using

Given.iStartMyUIComponent() *** Then.iTeardownMyUIComponent()/Then.iTearDownMyApp()

I am getting next error during the teardown

TypeError: this._mServices[n].instance.destroy is not a function

I tried to check why it is happening at it looks like some 'navigationService' service instance doesn't have a destroy function

Another strange behaviour is that when I am using

Given.iStartMyApp() *** Then.iTeardownMyApp()

everything is working good but I am not receiving code coverage information

Can you please help me to identify the root cause of such a behaviour?

Is this something that should be addressed to the Fiori Team or this issue caused by our application development?

I created two branches in our repository where this can be checked.

Teardown issue can be checked here: Teardown issue application branch

Code coverage issue can be checked here: Code coverage issue application branch

Thanks in advance,

Mykhaylo

0 Kudos

UPD:
- Issue was resolved in newer version of the SAPUI5 (starting from 1.115.0)

- I was told that switching to 'sap/fe/test/JourneyRunner' might also help

View Entire Topic
Andreas05
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi mykhaylo.dinul.sap,
could you resolve the issue which causes error "TypeError: this._mServices[n].instance.destroy is not a function"?
Thanks in advance,

Andreas