yes @Anudeep, I have included the condition like ischatbotsession=true in soql query in main class, now I want to cover this test class becoz, due to this test class codecoverage is faliing to 60%. Please suggest.Thanks !!
Guess you have to go with the workaround of using Test.isRunningTest()
This method usually comes in handy, when you intend to conditionally restrict execution of certain Apex code blocks, based on whether they are being invoked from a test class or not
This method usually comes in handy, when you intend to conditionally restrict execution of certain Apex code blocks, based on whether they are being invoked from a test class or not