Help with VBScript in QTP
Hi, I am very new to VBScript and QTP. I would appreciate if you could guide me how to write VBScript for following scenarios.
Scenario1: On the landing page, we have some filter options. All of the filter opetions are not visible due to realestate issues. I have to click "More" button to make all possible filter objects to be visible.
My test has to verify Visible = True on all filter objects.I would need code to click "More" so that all filter objects are visible.
Fyi.. I did record play back and I got SET "ON" when I clicked on More button.
Scenario 2: Test sorting works in Grid. Column has alphanumeric data. How can I write code to see if asceding/descending sorting works.
Thanks so much for your help.
Re: Help with VBScript in QTP
This is a very specific scenario and it will be hard to provide sample code that could be used as plug-and-play. Moreover, bulk of your requirement can be fulfilled with just QTP, besides the sort verification you're trying to test. It may be a little complex and you would definitely require VBScript. I don't think its something you should test, but that's just my opinion [img]/images/graemlins/smile.gif[/img]
I would recommend you to learn VBScript and read fundamentals of QTP. If you think books will be helpful, you can start here: http://knowledgeinbox.com/store/
For VBScript, you can start here: www.advancedqtp.com/wp-content/uploads/ScriptingQTP
There are some good blogs on QTP as well, including this forum. A good list here: http://www.automationrepository.com/qtp-blogs/
You can also use this as a starting point: http://www.sqaforums.com/showflat.ph...e=0#Post402552
I hope this helps.