1.0.20220806 • Published 2 years ago

@maxim_mazurok/gapi.client.testing v1.0.20220806

Weekly downloads
71
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for Cloud Testing API v1

Allows developers to run automated tests for their mobile applications on Google infrastructure. For detailed description please check documentation.

Installing

Install typings for Cloud Testing API:

npm install @types/gapi.client.testing@v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load('testing', 'v1', () => {
  // now we can use gapi.client.testing
  // ...
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [ 
      // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
      'https://www.googleapis.com/auth/cloud-platform',

      // View your data across Google Cloud services and see the email address of your Google Account
      'https://www.googleapis.com/auth/cloud-platform.read-only',
    ],
    immediate = true;
// ...

gapi.auth.authorize(
  { client_id: client_id, scope: scope, immediate: immediate },
  authResult => {
    if (authResult && !authResult.error) {
        /* handle successful authorization */
    } else {
        /* handle authorization error */
    }
});

After that you can use Cloud Testing API resources:

/*
Gets the details of an Android application APK.
*/
await gapi.client.testing.applicationDetailService.getApkDetails({  });

/*
Gets the catalog of supported test environments. May return any of the following canonical error codes: - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the environment type does not exist - INTERNAL - if an internal error occurred
*/
await gapi.client.testing.testEnvironmentCatalog.get({ environmentType: "environmentType",  });
1.0.20220614

2 years ago

1.0.20220705

2 years ago

1.0.20220623

2 years ago

1.0.20220712

2 years ago

1.0.20220806

2 years ago

1.0.20220726

2 years ago

1.0.20220426

2 years ago

1.0.20220510

2 years ago

1.0.20220517

2 years ago

1.0.20220608

2 years ago

1.0.20220524

2 years ago

1.0.20220531

2 years ago

1.0.20220419

2 years ago

1.0.20220315

2 years ago

1.0.20220401

2 years ago

1.0.20220329

2 years ago

1.0.20220404

2 years ago

1.0.20220411

2 years ago

1.0.20220301

2 years ago

1.0.20220308

2 years ago

1.0.20220310

2 years ago

1.0.20220224

2 years ago

1.0.20220112

2 years ago

1.0.20220110

2 years ago

1.0.20220201

2 years ago

1.0.20220120

2 years ago

1.0.20211228

2 years ago

1.0.20220215

2 years ago

1.0.20220212

2 years ago

1.0.20211116

2 years ago

1.0.20211123

2 years ago

1.0.20211202

2 years ago

1.0.20211207

2 years ago

1.0.20211104

3 years ago

1.0.20211025

3 years ago

1.0.20211021

3 years ago

1.0.20211015

3 years ago

1.0.20211007

3 years ago

1.0.20210918

3 years ago

1.0.20210928

3 years ago

1.0.20210908

3 years ago

1.0.20210903

3 years ago

1.0.20210827

3 years ago

1.0.20210820

3 years ago

1.0.20210813

3 years ago

1.0.20210803

3 years ago

1.0.20210728

3 years ago

1.0.20210719

3 years ago

1.0.20210713

3 years ago

1.0.20210709

3 years ago

1.0.20210625

3 years ago

1.0.20210621

3 years ago

1.0.20210611

3 years ago

1.0.20210607

3 years ago

1.0.20210531

3 years ago

1.0.20210524

3 years ago

1.0.20210510

3 years ago

1.0.20210430

3 years ago

1.0.20210423

3 years ago

1.0.20210416

3 years ago

1.0.20210413

3 years ago

1.0.20210402

3 years ago

1.0.20210326

3 years ago

1.0.20210318

3 years ago

1.0.20210317

3 years ago

1.0.20210308

3 years ago

1.0.20210223

3 years ago

1.0.20210215

3 years ago

1.0.20210204

3 years ago

1.0.20210201

3 years ago

1.0.20210120

3 years ago

1.0.20210115

3 years ago

1.0.20210106

3 years ago

1.0.20210104

3 years ago

1.0.20201210

3 years ago

1.0.20201208

3 years ago

1.0.20201106

3 years ago