Using LeanFT with similar objects in multiple technologies
Question ID: 106342
1
0

Using LeanFT to test our Windows application that updates data in our database. After it updates the data, we need to be able to see the changes in our web interface. I’m running into an issue where we have objects with the same name in both the Windows app and the web interface.

For example, in both we have an object called Button that needs to be clicked. How do we distinguish them in LeanFT without having to reference the full name, ie HP.LFT.SDK.Web.Button?

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on August 14, 2015 8:20 pm
116 views
Answers (1)
0
Private answer

You can create an alias to shorten the reference like this:

using HP.LFT.SDK.Web;
using HP.LFT.SDK.StdWin;
Web = HP.LFT.SDK.Web;
StdWin = HP.LFT.SDK.StdWin;

Now you can refer to objects using the alias, for example: StdWin.Button.

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on August 14, 2015 8:21 pm
0
That's a great technique. Thanks.
( at August 14, 2015 8:23 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top