diff --git a/plugins/amda/tests/TestAmdaFuzzing.cpp b/plugins/amda/tests/TestAmdaFuzzing.cpp index 7ed642c..eac10f4 100644 --- a/plugins/amda/tests/TestAmdaFuzzing.cpp +++ b/plugins/amda/tests/TestAmdaFuzzing.cpp @@ -82,21 +82,21 @@ const auto AVAILABLE_OPERATIONS_DEFAULT_VALUE = QVariant::fromValue( {FuzzingOperationType::DELETE, {0.0}}, // Delete operation is less frequent {FuzzingOperationType::PAN_LEFT, {1.}}, {FuzzingOperationType::PAN_RIGHT, {1.}}, - {FuzzingOperationType::ZOOM_IN, {1.}}, - {FuzzingOperationType::ZOOM_OUT, {1.}}, + {FuzzingOperationType::ZOOM_IN, {0.}}, + {FuzzingOperationType::ZOOM_OUT, {0.}}, {FuzzingOperationType::SYNCHRONIZE, {4000.0}}, {FuzzingOperationType::DESYNCHRONIZE, {0.4}}}); const auto CACHE_TOLERANCE_DEFAULT_VALUE = 0.2; /// Min/max delays between each operation (in ms) -const auto OPERATION_DELAY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(3000, 3000)); +const auto OPERATION_DELAY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(20, 20)); /// Validators for the tests (executed in the order in which they're defined) const auto VALIDATORS_DEFAULT_VALUE = QVariant::fromValue( ValidatorsTypes{{FuzzingValidatorType::RANGE, FuzzingValidatorType::DATA}}); /// Min/max number of operations to execute before calling validation -const auto VALIDATION_FREQUENCY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(8, 8)); +const auto VALIDATION_FREQUENCY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(2, 2)); // /////// ////// @@ -214,22 +214,8 @@ const QVariant CUSTOM_CASE_TWO =QVariant::fromValue(CustomVariablesOperations{{{ {{0, op(FuzzingOperationType::SYNCHRONIZE)}}, {{1, op(FuzzingOperationType::CREATE)}, true}, {{1, op(FuzzingOperationType::SYNCHRONIZE)}}, - {{0, op(FuzzingOperationType::ZOOM_IN)}}, - {{1, op(FuzzingOperationType::ZOOM_IN)}}, - {{0, op(FuzzingOperationType::ZOOM_IN)}}, - {{1, op(FuzzingOperationType::ZOOM_OUT)}}, - {{0, op(FuzzingOperationType::ZOOM_OUT)}}, {{1, op(FuzzingOperationType::ZOOM_OUT)}}, - {{0, op(FuzzingOperationType::ZOOM_IN)}}, - {{1, op(FuzzingOperationType::ZOOM_OUT)}}, - {{0, op(FuzzingOperationType::ZOOM_IN)}}, - {{0, op(FuzzingOperationType::ZOOM_OUT)}}, - {{1, op(FuzzingOperationType::ZOOM_IN)}}, - {{0, op(FuzzingOperationType::ZOOM_IN)}}, - {{0, op(FuzzingOperationType::ZOOM_OUT)}}, {{1, op(FuzzingOperationType::ZOOM_IN)}}, - {{0, op(FuzzingOperationType::ZOOM_IN)}}, - {{0, op(FuzzingOperationType::ZOOM_OUT)}}, }); // /////// // @@ -478,7 +464,7 @@ void TestAmdaFuzzing::testFuzzing_data() // Test cases // // ////////// // - auto maxRange = SqpRange::fromDateTime({2017, 1, 1}, {0, 0}, {2017, 1, 5}, {0, 0}); + auto maxRange = SqpRange::fromDateTime({2017, 1, 3}, {0, 0}, {2017, 1, 5}, {0, 0}); MetadataPool metadataPool{{{"dataType", "vector"}, {"xml:id", "c1_b"}}}; // Note: we don't use auto here as we want to pass std::shared_ptr as is in the @@ -500,7 +486,7 @@ void TestAmdaFuzzing::testFuzzing_data() {CUSTOM_OPERATIONS_PROPERTY, CUSTOM_CASE_TWO}}; - // Fuzzing +//// Fuzzing // QTest::newRow("fuzzingTest") << Properties{ // {MAX_RANGE_PROPERTY, QVariant::fromValue(maxRange)}, // {METADATA_POOL_PROPERTY, QVariant::fromValue(metadataPool)},