what is the error? why is the red line there? hover the mouse over red line.
[quote="qtpselenium.supp0rt@gmail.com":1iv2zjgq]Post subject: Re: Module18:Merging two class files
what is the error? why is the red line there? hover the mouse over red line.
[/quote:1iv2zjgq]
String "Username" & "Password" are defined in "TestUtil" class (Login function)
At present we are in "Registeruser" class(Register user function) and trying to call "Login" function.
As "username" parameter doesnt exists in "Register user", red color is displayed
hover over red line and eclipse will show a popup. send a screen show of that.
[quote="qtpselenium.supp0rt@gmail.com":v0t70p4n]hover over red line and eclipse will show a popup. send a screen show of that.[/quote:v0t70p4n]
[attachment=0:v0t70p4n]Mod18-merging 2 class files.png[/attachment:v0t70p4n]
check if '[color=#FF0000:1b0betd2]username[/color:1b0betd2]' variable is created or not? i don't think username is created.
Iam trying to call "Login" function which is created in class"Test Util".
Username & password values are supplied to "Login" function from excel (Using Parameters--@Runwith(parameterized.class))
it is working fine, when "Login" function is executed.
Now another function "Register" is created in [b:155gxs1l][u:155gxs1l]different [/u:155gxs1l][/b:155gxs1l]class.
For registering user, it is mandatory to login to application.
so i tried to call "TestUtil.Login" but got this message.
please let me know if iam not clear so that i can reach you in skype
[quote="qtpselenium.supp0rt@gmail.com":d4v5hg4v]can you come now?[/quote:d4v5hg4v]
Iam available on skype now
Iam able to solve this
1) by merging both login & register into single class
2) all Input parameters are passed to this from same excel sheet
Is this correct way to fix this or any better solution to fix this?
[attachment=0:x1h57fnm]Mod18- 2 class files.png[/attachment:x1h57fnm]