Skip to content

Commit

Permalink
Update LoadTestBase.java reference (#2027)
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Ferdman <[email protected]>
  • Loading branch information
emmanuel-ferdman authored Dec 10, 2024
1 parent ae17903 commit d96bd95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contributor-docs/add-integration-or-load-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ vary on whether the pipeline under test is a `Batch` or `Streaming` pipeline and
the type of test.

### Structure
First extend the test class from the [LoadTestBase](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/it/google-cloud-platform/src/main/java/com/google/cloud/teleport/it/gcp/LoadTestBase.java)
First extend the test class from the [LoadTestBase](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/LoadTestBase.java)
class. LoadTestBase contains helper methods which abstract irrelevant
information and make it easier to write load tests. It also defines some
clients and variables which are useful for writing tests.
Expand Down Expand Up @@ -552,8 +552,8 @@ public void testSteadyState1hr() {

### Exporting Results

After the pipeline finishes successfully, we can get the performance metrics using [getMetrics](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/it/google-cloud-platform/src/main/java/com/google/cloud/teleport/it/gcp/LoadTestBase.java#L272)
method and export the results to BigQuery by calling the [exportMetricsToBigQuery](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/it/google-cloud-platform/src/main/java/com/google/cloud/teleport/it/gcp/LoadTestBase.java#L127) method.
After the pipeline finishes successfully, we can get the performance metrics using [getMetrics](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/LoadTestBase.java#L279)
method and export the results to BigQuery by calling the [exportMetricsToBigQuery](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/LoadTestBase.java#L139) method.

The BigQuery project, dataset, and table to be used to export the data can be specified in the command line using,
* `-DexportProject` - BigQuery Project to export metrics (optional, if not provided `-Dproject` is used)
Expand Down

0 comments on commit d96bd95

Please sign in to comment.