you can test the rule in the same way that you can test every Compliance Rule.
Just use the green "play icon" on the top-right of the rule editor.
Such a test run does not trigger any component creation.
For Grammer Files see the following Docs page:
There are also several community posts for custome grammars available.
Thanks for the response.
I went through the Customer Grammer file creation.
But I want to know can we modify the BMC BladeLogic grammar files i.e. which is already present in the BSA.