HomeHome
MarathonMarathon
MarathoniteMarathonite
CompanyCompany
ContactContact
WeblogWeblog
 

All things Marathon, Marathonite, Java and GUI Test automation, scripting and whatever is useful for test automation projects.

CATEGORIES

BOOKMARKS

As part of Marathonite (Marathon Integrated Testing Environment) a mechanism to convert an existing test case into a data driven test case will be added.
An existing test script can be converted to a data driven test by clicking on the “Convert to Data Driven” button available in the toolbar of Marathon Main Window.

When the button is clicked playback of the test script begins, breaking at every function call to prompt the user with the available parameters in the function call which can be made data driven.

def test():
	java_recorded_version = '1.5.0_24'

	if window('w1'):
		select('First Name', 'ABCDEF')
		select('Password', 'adsf')
		method1('ABC', 'DEF', 'GHI')
	close()

Data Driven Control Center


The parameters which are to be converted to data driven can be selected by selecting the checkbox available in the first column. Clicking on the “Continue” button continues execution of test script and breaks at the next function call (usually in the next line of the script). The “Step-In” button will be enabled when there is a call to the function which is defined in a module or another test script. Clicking on “Step-In” button will enter into the module function and converts the module function to data driven. Care should be taken while converting a module function to data driven as the module function might be used in other scripts where it is not expected to be data driven.

When the playback of the script is finished, the “Save Conversion” window is displayed. All the parameters which are selected to be data driven are displayed in tables with respective window names as table-titles.


When the “Save” button is clicked, the converted data driven script and a corresponding spreadsheet containing the entered values for the respective parameters are saved. Once the data driven script is saved the user can choose to generate the data by clicking on “Generate Data” button. On clicking “Generate Data”, another window appears where user is required to configure the type, format and other attributes for each parameter for which the data is to be generated. (You will get to see another post explaining about “Data Generation” very soon.)


After configuring the parameters, when the “Generate” button is clicked, data for the required parameters is generated and saved into the spreadsheet which was created earlier while saving the data driven script.

Posted by Sampath Posted in MarathonITE

3 comments so far

  1. chandrasekhar

    Hi

    Iam very much keen for the latest release.And also want to know approximately what will be charged for the supported version.I need to give briefing on that tool to my company management

    looking farward for your reply

    Thanking you

    regards

    N.chandrasekhar

  2. chandrasekhar

    Hi

    i want to know how to use checklist custimizing as i was unable to check validations inspite of giving.Iam not clear with checklist

  3. Marathon - Java GUI Testing » Blog Archive » Test Data Generation

    [...] Test Data Window will appear on clicking “Generate Data” button as said in the post “Marathonite:Data driven testing”. Parameters whose test data is to be generated can be selected by selecting the checkbox in the [...]

Leave a Reply