Hi,
I started using the Unit Testing Framework a little while ago and so far have found it to be very beneficial. Implementing it as part of a BPT model would be very powerful for us and we plan to make it part of our product development process.
I was curious about some timeout and line count values as I had to change them in my case and I wanted to ask what the best practice should be here. (Maybe I shouldn't be changing these and my application of the framework is incorrect).
I have a module created for financial-related unit tests (Financial_UT). I have exposed SOAP web services for each aspect of the financial system that should be unit tested.
Example:
- PayingInvoices
- RefundingInvoices
- VoidingInvoices
- more...
This works well.
Taking these unit tests a step further and combining different processes is where I ran into an issue with timeouts. I got the following error:
So I went to the UTF_Core action where the PostRequest_Submit is used, and set the timeout property to 10 minutes (high I know, but I plan to have some rather cumbersome unit tests as part of regression testing).
I also had to adjust the LineCount property of the table records on the TestDetails web screen because I have a lot of assertions for my financial records as they get created, updated, etc. as well as comments.
So my questions are:
1. Do you see any flaws or issues with this implementation? Should it be used differently?
2. Should these values be adjusted for the next version so it can be used for larger tests (and my changes are reverted)?
Thanks very much for this wonderful tool!
I started using the Unit Testing Framework a little while ago and so far have found it to be very beneficial. Implementing it as part of a BPT model would be very powerful for us and we plan to make it part of our product development process.
I was curious about some timeout and line count values as I had to change them in my case and I wanted to ask what the best practice should be here. (Maybe I shouldn't be changing these and my application of the framework is incorrect).
I have a module created for financial-related unit tests (Financial_UT). I have exposed SOAP web services for each aspect of the financial system that should be unit tested.
Example:
- PayingInvoices
- RefundingInvoices
- VoidingInvoices
- more...
This works well.
Taking these unit tests a step further and combining different processes is where I ran into an issue with timeouts. I got the following error:
The operation has timed out at System.Net.HttpWebRequest.GetResponse() at OutSystems.NssHTTPRequestHandler.CssHTTPRequestHandler.MssPostRequest_Submit(String ssURL, Byte[] ssArguments, Int32 ssTimeout, Boolean ssKeepAlive, String& ssTextContent, Byte[]& ssBinaryContent, String& ssBinaryContentType) at ssUTF_Core.RssExtensionHTTPRequestHandler.MssPostRequest_Submit(HeContext heContext, String inParamURL, Byte[] inParamArguments, Int32 inParamTimeout, Boolean inParamKeepAlive, String& outParamTextContent, Byte[]& outParamBinaryContent, String& outParamBinaryContentType) |
So I went to the UTF_Core action where the PostRequest_Submit is used, and set the timeout property to 10 minutes (high I know, but I plan to have some rather cumbersome unit tests as part of regression testing).
I also had to adjust the LineCount property of the table records on the TestDetails web screen because I have a lot of assertions for my financial records as they get created, updated, etc. as well as comments.
So my questions are:
1. Do you see any flaws or issues with this implementation? Should it be used differently?
2. Should these values be adjusted for the next version so it can be used for larger tests (and my changes are reverted)?
Thanks very much for this wonderful tool!