Unable to test Platform 3.0 apps that are built on Freshdesk and Freshservice modules

I have a Platform 3.0 app that makes use of modules from Freshdesk and Freshservice.
Here’s my manifest.json file.

I’m trying to improve the test coverage of this app and am not able to invoke the service_ticket events onTicketCreate and onTicketUpdate. The fdk always invokes the callbacks for Freshdesk and there’s no way to change that.

This invokes Freshdesk’s onTicketCreate callback.

And this also invokes Freshdesk’s onTicketCreate callback.

Because both the product events in Freshdesk and Freshservice have the same name 'onTicketCreate`.

Here’s a screenshot of the coverage report where the Freshservice product event never gets called.

This is critical to the process of submitting the app for review as a minimum of 80% code coverage is required.

Please help resolve this.

Update
The same app also uses the onConversationCreate and onConversationUpdate product event’s of Freshchat.
When I invoke those methods in the test framework, I get this error message.

It seems like the testing framework does not support platform version 3.0 yet.

Hi @arunrajkumar235,

Yes, that’s true. We have not yet enhanced the FDK serverless testing framework to support global apps.

For unblocking, you can manually test those failing events for code coverage.

I will inform our team to enhance the testing framework to support Global apps, as it is now breaking in some of the cases, as you have pointed out.

Hi Ravi,

Thanks for acknowledging it.
It is going to be very tedious to do over all the test cases manually each time. It would’ve been possible if it were small app. With thousands of lines of code, it becomes unmanageable to have to do it manually.

Looking forward to testing framework support for 3.0 apps.

Regards,
Arun Rajkumar

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.