Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Test OneWay WCF Operations with Fitnesse
    primarykey
    data
    text
    <p>In our current application we are trying to use WCF netMSMQBinding which needs an Operation Contract to be marked as One Way.</p> <p>We are also trying to use Fitnesse as our test engine, In our test case we need to test the scenario end to end, which means that we can not use One Way Operations, because they will be returned as soon as the message is placed in queue and fitnesse will try to assert the results but in actual message may or may not have been processed yet. So if we use one way operations then we need to wait somehow till its execution is finished.</p> <p>Approaches tried/Researching on ..</p> <ol> <li><p>Change OperationDescription at time of hosting by reading configuration, so that when Hosted in Fitnesse IsOneWay is False, but in production IsOneWay is True and then user MSMQ binding only in production and for testing use tcp or netnamedpipe.</p> <p>We tried to create custom ServiceHost and change OperationDescription before Service is opened, but in OperationDescription class IsOneWay is read only property and by looking at .Net Framework Code, it returns count of Messages. In my opinion, i have to override CreateDescription operation of Service Host and have to provide custom implementation. It seems </p></li> <li><p>Create a Monitor Fixture in Fitnesse which would some-how wait till the message is processed.</p> <p>Approach 1: Create custom db table which stores MessageId and completed status and at the end of each message processing enter the record in that table. So now fitnesse fixture can just poll the table and wait till the execution is done.</p> <p>Approach 2: Somehow poll MSMQ and know when a message is processed. We are still re-searching how to make it work.</p></li> </ol> <p>Please suggest any pointers for current approaches or any new approach.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload