Don't change the following properties prior consultation with Dev.
hawk.target.application = SampleApp
Where the target app's module implementation lies in.
hawk.target.application.module.package = sampleapp.module
where the target app's specific configs ...
hawk.target.application.module.config.package = sampleapp.module
hawk.IModule.implementor.1 = OddModule
hawk.IModule.implementor.2 = EvenModule
hawk.IModule.implementor.3 = PrimeModule
hawk.IModule.main.module = SameplAppModule |
hawk.SampleApp.OddModule.sequence=1
hawk.SampleApp.EvenModule.sequence=2
hawk.SampleApp.PrimeModule.sequence=3
Duration of hawk in second.
hawk.mainModule.duration=1
hawk.mainModule.iteration=1000
hawk.mainModule.iteration.thinktime=3
hawk.SampleApp.OddModule.iteration=1
hawk.SampleApp.OddModule.iteration.thinktime=0
hawk.SampleApp.OddModule.thinktime=5
hawk.SampleApp.OddModule.runnable=1
hawk.SampleApp.EvenModule.iteration=4
hawk.SampleApp.EvenModule.iteration.thinktime=2
hawk.SampleApp.EvenModule.thinktime=3
hawk.SampleApp.EvenModule.runnable=1
hawk.SampleApp.PrimeModule.iteration=1
hawk.SampleApp.PrimeModule.iteration.thinktime=0
hawk.SampleApp.PrimeModule.thinktime=0
hawk.SampleApp.PrimeModule.runnable=1 |
This tool is designed to run using a script what we are currently calling hawk script. The script has to have ".hawk" file exetension. failing to which it will not accept it.
The script interpreter allows the script to be written in a syntax similar to UNIX shell scripting.
An attempt is made to make 'Hawk' script development easier for user having prior knowledge in any popular procedural language (preferably C ) and exposure to shell scripting.
The intention of 'hawk' script is to give QA more power and increased flexibility to slog the application harder and harder.
A sample script that comes with j-hawk is as follows.
function init()
{
echo "This Script is written by msahu"
}
function destroy()
{
echo "Script execution over!!!"
}
function testNumber()
{
exec init()
exec EvenModule->CheckEven
exec OddModule->CheckOdd
for (var i=1;i<=4 ; i = i+1)
{
echo "****************************"
for (var j=1;j<=4;j = j+1)
{
echo "<<<<<<<<<<<<<<<"
exec PrimeModule->CheckPrime
echo ">>>>>>>>>>>>>>>"
}
echo "****************************"
}
exec destroy()
}
Entry point for the script
function main()
{
for( var i;i <=5;i=i+1)
{
exec testNumber()
}
}
|