You need to sign in to do that
Don't have an account?
Rakesh Muppiri 12
Test.setFixedSearchResults is not a valid method, in Test Class
I have written test class, earlier it was working fine. Now to enhance it I have edited class and when i am trying to save it is throwing error like'Test.setFixedSearchResults is not a valid method or not valid signature'.
Please help me.
Please help me.
1. Check your API version and ensure that SOSL Test.setFixedSearchResults have same set of parameters if any to match method signature
2. Check test class syntax before error line and see if any missing bracket or quote you add during edit
Yeah I have checked everything, there is no braces missing. Its simply edit and save the version also same.
Here is the code snippet.
testData() - Creates all necessary data
initializeVariable() - setting up Ids to be available for SOSL