How to create a XML property file to use in Selenium WebDriver?



I"m working on Selenium Webdriver and the code I'm writing in Java.. In Eclipse running the scripts..


Currently i have many property files in my local directory and it is in the form of test.txt files and test.properties. And everything is a seperate files.


Example:


1.login.txt file contains the following details



loginUsername= test
loginPassword= 1234
url= https//: ....


2. dropdown.properties contains following values



visualizationId=Day,Week,Month,Quarter,Semester,Year,RD Tech Group,ICC,Center,Software Pack,Product,Project,Customer PRs,Severity,Priority
periodId=Last 4 Weeks,Last 52 Weeks,Date Range,Week Range,Month Range,Year To Date
classificationId=All PRs,External PRs,Internal PRs,Customer PRs
topographyId=Overall,Center,ICC,
swpacksId=ADVIP,ADVLEG,ADVSEC,Boot,H323,IBC,MULTI,None,OneOS_EAD,PROXY,SBO,SIP,TDRE,VoDSL
priorityId=Very Urgent,Urgent,Routine,Not Urgent,On Hold,Not Assigned
severityId=Blocking,Major,Minor,Cosmetic,OLD PR
projectId=/dev/v4.3/r4/e12sqq,BATS,1523 Business IAD & Business CPE,[CoCo2M],VQM


My doubt is how can i keep everything in the form of XML file and it should be generic and i should call wherever i want the xml property file.


Please help me for this scenario.


No comments:

Post a Comment