-
Assume, given web application is accessible in
one Machine ( IP : 10.10.10.10)
-
You need to write selenium tests and run.
-
You are not allowed to install / download any software
except browser in IP: 10.10.10.10.
How you do you
achieve this?
Analysis:
-
We can start coding in our local laptop , later
we can think about executing tests.
-
To find out locators ( xpaths / css / etc) ,
connect to the machine IP 10.10.10.10 via remote desktop and fetch as much info
as needed.
Now Execution part,
-
When we execute our test in local, tests should
run in the IP 10.10.10.10.
-
This can be achieved via selenium GRID.
-
Create a node in IP 10.10.10.10 and connect to a
HUB ( either in your laptop / IP 10.10.10.10)
-
Write Remote web driver code instead of plain
webdriver.
Just hit run. That’s all.
No comments:
Post a Comment