Skip to main content

Posts

Showing posts with the label Testing

Regression Suite Automation Tool (RSAT) via command line

The recent RSAT tool now supports running via command line. Just call the ConsoleApp executable with the right commands. This is great for automation scenarios. Normally, you would have all your test plans prepared and you just want to execute it them on a regular basis. Below is a quick summary of what it covers. To get the list of commands just enter ? at the end. C:\Program Files (x86)\Regression Suite Automation Tool\ Microsoft.Dynamics.RegressionSuite.ConsoleApp.exe ? To get the list of IDs just run this. C:\Program Files (x86)\Regression Suite Automation Tool\ Microsoft.Dynamics.RegressionSuite.ConsoleApp.exe list To run a list of test cases just use the playbackbyid command. C:\Program Files (x86)\Regression Suite Automation Tool\ Microsoft.Dynamics.RegressionSuite.ConsoleApp.exe playbackbyid 104 105 106

Regression Suite Automation Tool - Create unique values

The RSAT doesn't have any roll back feature. So, it can be frustrating updating the excel file with unique records. Well not to worry - RSAT supports Excel formulas. The user guide suggests using RandBetween(a,b) Excel function. However, that isn't really reliable and you are hoping you don't get the same random number. I have been using date formula. The below concatenates the datetime to the string. =CONCATENATE("SS",TEXT(NOW(),"yymmddhhmmss")) If you want to get started with RSAT. Download the tool and the user guide from here. https://www.microsoft.com/en-us/download/details.aspx?id=57357 You can also watch a short video that walks you through how to use it.

AX and Scrum: Automated testing

Scrum highly encourages you to do automated testing. A common thing I hear is “any (some) automated testing is better than none”. So, my advice is start somewhere. I am not going to go through all the detail of automated testing that we do but what I will cover is the Unit test framework . The unit test framework is in the MorphX IDE that allows you test your code. A click of a button you could run a whole bunch of automated tests. Below is a screen shot of an area we test heavily, our forecasting engine. The forecasting engine similar to master planning in standard AX. It recommends what work order should be done and when. eg. Every 100KM a service is required for your car. Or Every 6Month you do an oil change. Or on the 1st of of every month you do an inspection. All sorts of combinations. . Below is a simple test for testing calendar days. We document our test cases in a spreadsheet first. Writing what the input is and what the out come is. Then a developer writes a test suite o...