The Welkin Suite Forum

Unable to use the function Run Tests from this class



Unable to use the function Run Tests from this class

  • Please log in to reply

#1
windows version welkinsuite

joseph@crmdna.com

    Posted 23 Aug 2017

    Up until recently I was able to right click on a test class and have it initiate tests.

    Now I am getting an error on every test class I have attempted is showing the following error (See attached image):

    "This test class is not present on Salesforce. Please build these changes for the test class."

    • I have checked Salesforce to ensure that they are still present (they are)
    • I added some comments and rebuilt the Apex files that the system claims are not on Salesforce.
    • I have exited and re-entered the IDE and still getting the same error message when attempting to run the tests by right clicking from my class.


    Attached Files


    4 replies to this topic

    #2

    vlgubanovich

      Posted 25 Aug 2017

      Hi Joseph,


      Thank you for letting us know about this issue. And thank you for the detailed description of the situation.

      Can I please ask you to share some more details:

      • Does this functionality work for other test classes or test methods in the same test class?
      • Does this functionality work for other projects that you have?
      • Please send us a log file using the Main Menu "Help -> Report a bug" option

      This information will greatly help us investigating and resolving the issue.


      Thank you,

      Vladimir


      Vladimir Gubanovich
      Head of Product
       
      The Welkin Suite
      skype id: vladimir.gubanovich
      e-mail: vladimir.gubanovich@welkinsuite.com


      #3

      joseph@crmdna.com

        Posted 28 Aug 2017

        Hi Vladimir,


        Thank you for the response.


        Its working now and I think I have a handle on what was happening.


        During the time it was failing  the Sandbox had a lot of other tests that were queued up and I think the process was failing to queue due to the number of test classes in front of it (it was a huge number as it was running a full test of all classes including 3rd party apps).


        So the problem was that the error message is describing a completely different problem than what was likely occuring.


        To replicate I would do the following:

        • Go to the Salesforce Test Execution menu and run the full gamut of tests including 3rd party. (make sure you have a ton of tests to run, on my instance I was working on there were hundreads of test classes).
        • Then within the Welkin Suite try to right click and Run Tests from This Class.
        • You should get the error seen above.

        I think the super quick fix (assuming you can recreate it) would be to change the text of the message to read "Unable to retrieve the Test Class from Salesforce. Either it is not present and needs to be rebuilt or there are currently too many test classes being processed to retrieve the file at this time".



        #4

        vlgubanovich

          Posted 29 Aug 2017

          Hi Joseph,


          Thank you for figuring this situation out and for sharing this with us!

          The reason you provided makes sense or, maybe, the test that you was trying to execute has not yet finished in your current queue - we're not able to request it's execution for the second time.

          Completely agree that we need to update the messaging for such cases to be more specific (and not provide incorrect reasons). Not sure if we'll inlcude it to the release this week, but at some point later we'll include it.


          Thank you,

          Vladimir


          Vladimir Gubanovich
          Head of Product
           
          The Welkin Suite
          skype id: vladimir.gubanovich
          e-mail: vladimir.gubanovich@welkinsuite.com

          • 4

          #5

          joseph@crmdna.com

            Posted 29 Aug 2017

            Hi Vladimir,

            I think you are right (the test had not completed its execution). I am able to 






            Boost Your Productivity. Get Started Today

            Try Free Trial