Unsure if I can test in ReadyAPI! - ESB polls a directory to pick up a flat file??
A previous project I worked on had the following process flow:
1. 3rd party system, ETL generates a flat file, FTP moves file to a directory
2. ESB polls the directory and picks up the flat file, transforms the file to .json
3. .json is published to the MS Dynamics CRM.
I have 2 lots of tests exercising the above:
1st set of tests to verify the files are transformed by the ESB's adaptor to .json correctly
2nd set of files is that I publish the .json files directly to the CRM .
I was just wondering if there's anyway to alter my test approach to include creating a file and moving it to the directory the ESB polls? At the moment my testing completely skips point 1 and I was wondering if I could actually include point 1 in my tests?
to be honest - I'm unsure if this really adds much value as once I've proved it worked once, I wouldn't need to test it again anyway as I'd just be testing the FTP config I suppose. Also - I should highlight that I've tested this end to end approach manually rather than in SoapUI - i.e. create a file, move it to the directory, allow the FTPclient to move the file to the directory the ESB polls and then query the CRM's SQL Server database to make sure the records contained within the file were updated within the CRM correctly.
I was just wondering if anyone had done something like the above before - and whether it would actually be worth it?
I have been reading a little and can see there's an FTP step and a File Wait step - but I'm unsure if these actually provide what I need - the File Wait step appears to just 'pass' if a file appears in the relevant directory and the FTP step allows you to upload files to an FTP server and 'passes' if the file is moved successfully.
Any help/guidance/tips/hints would be most appreciated!
My testing of this previously is that I create test data .json files and publish to the CRM