Friday, July 26, 2013

Documenting, Test Cases and Getting ready for Mid: GSOC Week 6

As this is the final week before the mid evaluation, i finished the test cases for stop validation module.

Then i wrote the documentation for the two newly added features, and added them into the validation module documentation which can be found here. However as the changes are still not available in the publicly visible module, i also added a comment there saying that, the changes will be included once the GSoC project is over.

Validation Module New Documentation

There after i have been working this week on polishing my existing code, covering test cases and documenting them. Hopefully i can complete the mid evaluation tasks well in this week.

Saturday, July 20, 2013

Completing 'Stop validation' : GSoC Week 5

In this week i finished 'Stop Validation' task. The earlier method of stopping the validation with using a button didn't work as expected so i rewrote the UI code to display a progress message once the validation starts. This has a link named 'Stop' which user can click to stop the currently running validation.

When user click 'Stop' link validation will be stopped and all the validation threads are interrupted. After successfully stopping the process, it will display a 'validation stopped' message in screen. If the validation is not stopped and finished as normal, the progress message will dissapear when the validation completed successfully. In this the the usual 'validation success' message will come out.

1. Validation Progress bar with 'Stop' option.



2. Validation stopped message

Friday, July 12, 2013

Adding test cases for task VM-2 : GSoC week 4

This week i spent on writing test cases for the first feature i have implemented which is VM-2, Make it possible to select the type of metadata or data to validate instead of typing a fully qualified class name. I first added the OpenMRS GenerateTestCases plugin for IntelliJ Idea and generated the skeletons of the test methods.

The follwing is the list of test cases i have written for this week.


  • @should verify all validation threads have started
  • @should verify validation is completed
  • @should verify thread count is correct
However i came through an issue while trying on running the test cases as the IDE threw a lot of ClassNotFoundExceptions. It seems that this is due to classpath settings issues in my project, so i am going to work with my mentor on resolving these today and will properly test the written test classes.

Friday, July 5, 2013

Adding 'All Data' selection option to validation UI : GSoC week 3

In this week i was able to complete the following tasks.

1. Modified the code in a way to display the simple object type names in a three column view.



2. Added an option to select 'All Data' to validate at once. [VM-1]
    Once the user checks the 'All Data' checkbox in the selection window, the whole list of available validators will be displayed in the UI and user can validate the whole data with a single click.


Therefore i am expecting to finish this feature within next week with completing unit tests and the documentation.

After that i will be working on VM-3, which is adding a way to stop validation. I already got a start to that this week, however hope to continue it after the VM-2, the current task is completed. Also i need to discuss the approach for VM-3 with my mentor too.