The Welkin Suite Forum

[Solved] Error: Method does not exist or incorrect signature: Test.isRunningTest()



Error: Method does not exist or incorrect signature: Test.isRunningTest()

  • Please log in to reply

#1

bill_flynn

    Posted 24 Feb 2017 and edited 17 Feb 2018

    In my code, I have this line:

    if (!csd.renewal_success_Enabled__c && !Test.isRunningTest()) ...

    When I build my solution, TWS gives me this error:

    Method does not exist or incorrect signature: Test.isRunningTest()

    The isRunningTest() method does exist (it's a static method in the Test class), and the signature is correct.  This is existing code that I imported in TWS and it runs without error.

    Is this a bug?



    2 replies to this topic

    #2

    bill_flynn

      Posted 24 Feb 2017

      The problem root cause have been identified and fixed.  TWS was not the problem.  I was the problem.  :-)  Yesterday, while experimenting with TWS, I created an Apex class named Test.  TWS saved this to my Salesforce sandbox instance.  My Test class "eclipsed" the Salesforce Test class.  That caused the "Method does not exist or incorrect signature: Test.isRunningTest()" error.  I deleted my Test class and then I was able to deploy my code.


      • 1

      #3

      kate.dulko

        Posted 27 Feb 2017

        Hi Bill,


        Thank you for your post and for your update.

        We are glad that you can continue your working process with The Welkin Suite IDE.

        If you would have any other questions or suggestions, please contact us. We will be happy to assist. Also, this is interesting for us to get your feedback about the IDE in general.


        Thank you,

        Kate


        Kate Dulko
        Customer Relations

        The Welkin Suite

        twitter: @KateDulko
        skype id: d_katerina
        e-mail: kate.dulko@welkinsuite.com

         

          


        Boost Your Productivity. Get Started Today

        Try Free Trial