Chat now with support
Chat mit Support

Benchmark Factory for Database 9.0 - User Guide

Welcome to Benchmark Factory What's New in Benchmark Factory Additional Resources Overview of Benchmark Factory Benchmark Factory Components Licensing Getting Started - the Benchmark Factory Workflow Agents Create and Edit Connections Create and Edit Tests and Jobs
Jobs View Pane Job Wizards Quickstart: Create a New Job Edit a Job Industry Standard Benchmark Tests Capture and Replay a Workload Artificial Test for Desired Effect Scalability Tests Custom Tests Create/Delete Benchmark Objects Execute External File Test Options for Create Objects Test Options for Transactions Job Setup Options Use Global Search/Replace Save Job as BMF Script Copy Test to Replay, Mix, Goal, or Scalability Test
Benchmarks How Do I... Settings Test Results and Run Reports BFScripts Repository Troubleshooting The Benchmark Factory REST API Appendix About Us Adding Virtual Users System/Upgrade Requirements/Supported Databases Shortcut Keys

Import Benchmark Factory Self Signed Certificate

 

Get Benchmark Factory Self Signed Certificate

After launching, Benchmark Factory will generate a Certs folder in %LOCALAPPDATA%\Quest Software\BMF. There are 2 files in it: Certificate.pem and key.pem. Certificate.pem is the self signed certificate.

Import from Browser

  1. Import from Google Chrome

    Open the Google Chrome Settings page. In the Privacy and security section, click Security to open a new page. In the Advanced security section click the Manage certificates to open the dialog: Certificates. Click the tab: Trusted Root Certification Authorities. Click Import ... button and follow the wizard to import the Certificate.pem. After that the certificate is listed in the table.

  2. Import from Internet Explorer

    Open Internet explorer. Go to Internet options, Click the Content, Click Certificates button to open Certificates dialog. Click the tab Trusted Root Certification Authorities, then click Import... button and follow the wizard to import the Benchmark Factory's Certificate.pem. After that the certificate is listed in the table:

Local Access to REST API

 

From the Benchmark Factory 8.4, Benchmark Factory provide REST API service as a HTTPS server. The default setting for REST API is Local Access. The check-box 'Local Access Only' is in Settings REST API section. Whether it checked or not, from local access to REST API works. Below are examples:

 

Access to REST API Without Certificate

Because in Benchmark Factory 8.4 we add the authentication to the REST API, so it needs to use --insecure to ignore the SSL certificate checking without certificate.

  • GET Jobs

    curl -X GET https://localhost:30100/api/jobs --insecure

    curl -X GET https://127.0.0.1:30100/api/jobs --insecure

     

    To access the REST API with a Certificate. See how to Import Benchmark Factory Self Signed Certificate

    The behavior is otherwise the same as for earlier versions of Benchmark Factory.

  • GET Jobs

    curl -X GET https://localhost:30100/api/jobs

    curl -X GET https://127.0.0.1:30100/api/jobs

  • Allow external host access REST API

    In order to secure the external host access to the Benchmark Factory server through REST API, Benchmark factory add Authentication for the request method. The request header should contain the Authentication REST API Key from the external host to access the Benchmark Factory Server.

    There are three steps to use the REST API Key.

    REST API Settings

    Unchecked the Local Access Only check-box in the REST API Settings page

    1. Select Edit|Settings or Press F8 to open the Settings dialog.

    2. Select the REST API Settings page.
    3. Unchecked the Local Access Only check-box, then click button apply.

    4. Restart the Benchmark Factory.

    Copy the API Key

  • Use one of the following methods to copy the REST API Key to the clipboard:
    • Select Edit|Settings or Press F8 to open the Settings dialog, click copy button.

    • Select Tools|Show API Key to open the Show API Key dialog, click copy button.

    Using the API Key

    Using the API Key as Request header in a HTTP request Method examples:

    1. To access the REST API without certificate you need to ignore the checking for SSL certificate with --insecure

  • GET Jobs

    curl -X GET -H "x-api-key:zW2xlViY84WLld+1O/4a+ll2QVX9CVXPJzBSQ7PCPJ8=" https://BenchmarkFactoryHostIP:30100/api/jobs --insecure

     

    2. To access to REST API with a certificate. See how to Import Benchmark Factory Self Signed Certificate

  • GET Jobs

    curl -X GET -H "x-api-key:zW2xlViY84WLld+1O/4a+ll2QVX9CVXPJzBSQ7PCPJ8=" https://BenchmarkFactoryHostName:30100/api/jobs

     

  • Create a Connection

    Benchmark Factory allows you to connect to a variety of different databases. To learn how to create a connection for a specific database, see one of the following topics:

    Using BFScripts in the Connection Dialog

    You can use BFScripts in a Connection dialog. BFScripts are enabled in the User Name and Password fields. You can also add BFScripts to the Data Source Name field for an ODBC connection. See Using Scripts in the Connection Dialog for more information.

    For an overview of BFScripts, see About Scripts.

      

    Verwandte Dokumente

    The document was helpful.

    Bewertung auswählen

    I easily found the information I needed.

    Bewertung auswählen