NAME

WWW::SFDC::Tooling - Interface to the Salesforce.com Tooling API

VERSION

version 0.36

SYNOPSIS

my $result = WWW::SFDC->new(
 username => $USER,
 password => $PASS,
 url => $URL
)->Tooling->executeAnonymous("System.debug(1);");

Note that $URL is the _login_ URL, not the Tooling API endpoint URL - which gets calculated internally.

This module consumes WWW::SFDC::Role::CRUD.

METHODS

describeGlobal

Unimplemented

describeSObjects

Unimplemented

executeAnonymous

$client->Tooling->executeAnonymous("system.debug(1);")

runTests

$client->Tooling->runTests('name','name2');

returns a RunTestResult hash which looks like:

{ successes => [{ name => 'MyTest', id => '...', namespace => undef, time => 123, #time in MS methodName => 'something' }, ... ], failures => [{...}] totalTime => 1234, numFailures => 3, numTestsRun => 4, codeCoverage => [ # HUGE LIST OF HUGH HASHREFS GOES HERE. ]

}

runTestsAsynchronous

Takes a list of IDs of test classes. Returns the ID of the enqueued test run.

BUGS

Please report any bugs or feature requests at https://github.com/sophos/WWW-SFDC/issues.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WWW::SFDC::Tooling

You can also look for information at https://github.com/sophos/WWW-SFDC

AUTHOR

Alexander Brett <alexander.brett@sophos.com> http://alexander-brett.co.uk

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Sophos Limited https://www.sophos.com/.

This is free software, licensed under:

The MIT (X11) License

The full text of the license can be found in the LICENSE file included with this distribution.