- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- API Version 20: System.isRunningTest() Method does...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
API Version 20: System.isR unningTest () Method doesn't exist?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-04-2010 01:16 PM
When trying to utilize this on our Winter 11 sandbox - or in NA6 after update -
Save error: Method does not exist or incorrect signature: System.isRunningTest()
Despite the API docs listing:
The following are the static methods for System.
And the apex class metadata:
<?xml version="1.0" encoding="UTF-8"?><ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>20.0</apiVersion>
<status>Active</status>
</ApexClass>
Re: API Version 20: System.isR unningTest () Method doesn't exist?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-05-2010 03:20 PM
I'm having the same issue as well. Did this method get dropped from the release?
Re: API Version 20: System.isR unningTest () Method doesn't exist?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-05-2010 03:50 PM
If they dropped it from release - how is anyone supposed to delineate if they are running in a test context now? You used to be able to use the Limits object - but that's changed.
I submitted a case and got feedback from support just now
"Case#03955103 regarding isRunningTest()
I have escalated your case to tier3.I will let you know when will get any update from tier3."
Re: API Version 20: System.isR unningTest () Method doesn't exist?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-07-2010 02:40 PM
Documentation issue!
Should be: Test.isRunningTest();

