Quality Testing

Quality is delighting customers

Hi All,

 

Action1

Browser().Page().WedEdit("Web_Edit").GetRoProperty("value")

 

Action2

Browser().Page().WedEdit("name").Set "12345"

RunAction "Action1",oneiteration

 

the above test fails to run because there is a change in the object name of webedit in both the actions.

 

Could some help how to resolve this issue. I have tried using SetToProperty in Action2 but when Action1 gets invoked it is not working.

 

Note: I should not modify Action1 since it has been used in some other Tests.

 

Views: 372

Reply to This

Replies to This Discussion

so you want run to get the value of Web_Edit from action1 and then from action2 you want set value of name?

both the field in the same page?


 

Action1 should read the value from the text box which is set in Action2 and validate it for Alphanumeric Check.

Script flow is 

Action2

Browser().Page().WedEdit("name").Set "abcd12345"

RunAction "Action1",oneiteration

 

Action1     'It is general action for some text boxes in the application to validate entry for alphanumeric

isalpha = Browser().Page().WedEdit("Web_Edit").GetRoProperty("value")

iidlength = Len(isalpha)

alphanumeric = IsSpecialAlphanumeric(isalpha)

 

 

Please help me with the solution.

 

 

 

 

can you confirm that action1 and action2 has same object repository?
No.. Action1 and Action2 have different repositories.

Action1 : Shared
Action2 : Local
Please verify Browser name and Page name from from object repository of action2 is same as the code or not.

Browser("Browser").Page("Flights, Air Tickets,").WebEdit("destination").Set "kolkata"

Browser name and Page names are same except WebEdit name.

 

Action2

Browser("Browser").Page("Flights, Air Tickets,").WebEdit("destination").Set "kolkata"

RunAction "Action1",oneiteration

 

Action1

isalpha = Browser("Browser").Page("Flights,Air Tickets,").WebEdit("name").GetROProperty("value")

iidlength = Len(isalpha)

alphanumeric = IsSpecialAlphanumeric(isalpha)

 

please verify object repository of each action.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service