Monday, January 13, 2014

Windows 7 Keyboard Shortcuts

I needed a shortcut to change language on a virtual machine today,
and I found this interesting link:

http://www.shortcutworld.com/en/win/Windows_7.html

Have fun!

Thursday, January 9, 2014

Add Testing Host in ALM

1. Open ALM in Remote Machine.
2. Go to Help -> ALM Tools -> HP ALM Lab Service > Download HP ALM Lab Service for corresponding operating system.
3. Follow the wizard, Install Auto Login:

4. Continue the installation.
5. Enter Server Settings and Host Settings.

6. In ALM, go to Lab Resources -> Testing Hosts -> New Testing Host.
Important! Make sure you set the New Testing Host Name the same as the machine name!

7. Click Register Host.
8. When prompted to start the service host, select Yes -> Finish.
9. Restart machine.
10. In ALM, go to Lab Resources -> Testing Hosts, right click on the new Testing Host and select Check Host.

Wednesday, January 8, 2014

UFT - Enter text in Frame

I had a form where the text fields were not identified as WebEdit. When using the Object Spy the object was identified as a Frame or WebElement inside a Frame.

Here is the solution I have found:
Set oEdit = Browser("").Page("").Frame("Frame").WebElement("")
oEdit.object.innerText = "This is a plain text"

Source:
http://www.knowledgeinbox.com/articles/qtp/how-to/web/how-to-set-text-in-a-webelement-or-frame/

Tuesday, January 7, 2014

Check syntax in UFT

If you need to check syntax is correct for code in HP UFT you have 2 options:

1. Go to Design -> Check Syntax.

2. Ctrl + F7.

Have fun!