@@ -21,6 +21,7 @@ import securityrolesm = require('./SecurityRolesApi');
2121import taskagentm = require( './TaskAgentApi' ) ;
2222import taskm = require( './TaskApi' ) ;
2323import testm = require( './TestApi' ) ;
24+ import testplanm = require( './TestPlanApi' )
2425import testresultsm = require( './TestResultsApi' ) ;
2526import tfvcm = require( './TfvcApi' ) ;
2627import wikim = require( './WikiApi' ) ;
@@ -318,7 +319,14 @@ export class WebApi {
318319 return new testm . TestApi ( serverUrl , handlers , this . options ) ;
319320 }
320321
321- public async getTestResultsApi ( serverUrl ?: string , handlers ?: VsoBaseInterfaces . IRequestHandler [ ] ) : Promise < testresultsm . ITestResultsApi > {
322+ public async getTestPlanApi ( serverUrl ?: string , handlers ?: VsoBaseInterfaces . IRequestHandler [ ] ) : Promise < testplanm . ITestPlanApi > {
323+ // TODO: Load RESOURCE_AREA_ID correctly.
324+ serverUrl = await this . _getResourceAreaUrl ( serverUrl || this . serverUrl , "e4c27205-9d23-4c98-b958-d798bc3f9cd4" ) ;
325+ handlers = handlers || [ this . authHandler ] ;
326+ return new testplanm . TestPlanApi ( serverUrl , handlers , this . options ) ;
327+ }
328+
329+ public async getTestResultsApi ( serverUrl ?: string , handlers ?: VsoBaseInterfaces . IRequestHandler [ ] ) : Promise < testresultsm . ITestResultsApi > {
322330 // TODO: Load RESOURCE_AREA_ID correctly.
323331 serverUrl = await this . _getResourceAreaUrl ( serverUrl || this . serverUrl , "c83eaf52-edf3-4034-ae11-17d38f25404c" ) ;
324332 handlers = handlers || [ this . authHandler ] ;
@@ -422,7 +430,7 @@ export class WebApi {
422430 }
423431
424432 private _readTaskLibSecrets ( lookupKey : string ) : string {
425- if ( isBrowser ) {
433+ if ( isBrowser ) {
426434 throw new Error ( "Browsers can't securely keep secrets" ) ;
427435 }
428436 // the lookupKey should has following format
0 commit comments