Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

can i have one global variable and pass to all xml suite files? or how to pass parameter from propertues file to xml file? in selenium java

I have many xml suite files and use user and pass in all file, I want to have one global parameter to pass, or pass from promerties file

<test name="example">
    <parameter name="username" value="[email protected]"></parameter>
    <parameter name="password" value="123456"></parameter>
    <parameter name="itemNumberToSelect" value="15"></parameter>

    <classes>
        <class name="" />
    </classes>
</test>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...