View Issue Details

IDProjectCategoryView StatusLast Update
0009278CTT UA Scripts4 - Test Case Definitionpublic2024-04-12 05:38
ReporterGigantic Heisenberg Assigned ToMichael Fehler  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86OSWindows OS Version11
Fixed in Version1.03.508 
Summary0009278: Subscription_Minimum_10_004 (Server Test)
Description

In Subscription_Minimum_10_004 all odd subscriptions are disabled but it is expected that the publish helper contains data for the first five executions and not for the even executions.

Replacing

"
// call Publish() 6 times, the first 5 should contain data; 6th a keep alive (first 5 in this loop)
for( var s=0; s<5; s++ ) {
PublishHelper.Execute( );
if( Assert.True( PublishHelper.CurrentlyContainsData(), "Expected a data change for the active subscriptions." ) ) {
receivedSubscriptions.push( PublishHelper.Response.SubscriptionId );
}
}//for s...

    // now the 6th publish
    PublishHelper.Execute();
    Assert.False( PublishHelper.CurrentlyContainsData(), &quot;Expected a keep alive.&quot; );

"

by
"
// Call Publish for all subscriptions
// The disabled ones should contain a keep alive
// The others should contain datat
for( var i=0; i<subscriptions.length; i++ ){
PublishHelper.Execute();
if( i % 2 == 1 ){
Assert.False( PublishHelper.CurrentlyContainsData(), "Expected a keep alive." );
}
else{
if( Assert.True( PublishHelper.CurrentlyContainsData(), "Expected a data change for the active subscriptions. " + s ) ){
receivedSubscriptions.push( PublishHelper.Response.SubscriptionId );
}
}
}//for s...
"
makes the test case pass.

Steps To Reproduce

execute the mentioned test.

Additional Information

the mentioned issue was observed in v1.04.500 and 1.04.502

TagsNo tags attached.
Files Affected

/maintree/Subscription Services/Subscription Minimum 10/Test Cases/004.js

Activities

Paul Hunkar

2023-12-14 15:28

administrator   ~0020531

the reporter need to verify that the issue still exist in the latest version of the CTT

Gigantic Heisenberg

2023-12-19 14:27

reporter   ~0020533

Issue still exist, when using latest CTT Version 1.4.11.504 .

Sebastian Allmendinger

2024-02-05 12:24

developer   ~0020768

The test script may fail if the server returns Good_CompletesAsynchronously for WriteRequests and the configured delay is greater than a tenth of the KeepAlivePeriod.

In this test script, the CTT writes to the same variable 10 times in a loop. After each WriteRequest, the CTT waits the configured delay. If this sequence takes longer than the KeepAlivePeriod of the subscriptions, then the server has to send also KeepAliveNotifications for the disabled subscription in addition to the expected DataChangeNotifciations. The test script should be optimized so that:
a) it only writes once to the variable, which results in a DataChange in each of the subscriptions. This will reduce the chance to run into the problem.
b) it skips the validation if the delay is greater than the KeepAlivePeriod.

As a workaround, the CTT setting for the 'Default Subscription Publish Interval' can be set to a value that results in a greater KeepAlivePeriod.

Paul Hunkar

2024-04-12 05:38

administrator   ~0021111

Reviewed issue in call, agreed to changes and closed issue

Issue History

Date Modified Username Field Change
2023-11-27 10:50 Gigantic Heisenberg New Issue
2023-12-14 15:28 Paul Hunkar Assigned To => Paul Hunkar
2023-12-14 15:28 Paul Hunkar Status new => feedback
2023-12-14 15:28 Paul Hunkar Note Added: 0020531
2023-12-19 14:27 Gigantic Heisenberg Note Added: 0020533
2023-12-19 14:27 Gigantic Heisenberg Status feedback => assigned
2024-02-05 12:24 Sebastian Allmendinger Note Added: 0020768
2024-03-28 10:12 Alexander Allmendinger Project CTT UA Test Case => CTT UA Scripts
2024-03-28 10:12 Alexander Allmendinger Assigned To Paul Hunkar => Michael Fehler
2024-03-28 10:13 Michael Fehler Status assigned => resolved
2024-03-28 10:13 Michael Fehler Product Version 1.04.11.500 =>
2024-03-28 10:13 Michael Fehler Files Affected => /maintree/Subscription Services/Subscription Minimum 10/Test Cases/004.js
2024-04-12 05:38 Paul Hunkar Status resolved => closed
2024-04-12 05:38 Paul Hunkar Resolution open => fixed
2024-04-12 05:38 Paul Hunkar Fixed in Version => 1.03.508
2024-04-12 05:38 Paul Hunkar Note Added: 0021111