Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using DP to define windows
#5
Not Solved
More clarification is needed...
This is what I use to create the randoms strings...

Code:
Const LETTERS =  "abcdefgh ijklmnopqrstuvwxyz ABCDEFGH IJKLMNOPQRSTUVWXYZ 0123456 789 ~!#$%^*()_+-=/?,<.>"

For i = 1 to RowCount
    Dim str
    For x = 1 to MaxCharCount
        str = str & Mid (LETTERS, RandomNumber(1, Len(LETTERS)), 1)
    Next
        [b]Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Type[/b] str
        Browser(ObjBrw).Sync
        [b]Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Type [/b]micDwn
        str = ""
Next

So I utilize the
Code:
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Type


to type in the str
The RowCount & MaxCharCount are calculated elsewhere

My intention is to use Descriptive Programming to create the
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server")
objects so I can use them to type in my strings but NOT have to have them in a repository.

These are the only 2 objects I have in a repository and I would like to not have to rely on them to make the code in the script[s] truly transportable through multiple modules in the app I am testing.

Does this clarify things?
I am open to suggestions.
Thanks, rajpes
Reply


Messages In This Thread
Using DP to define windows - by mrerek - 07-15-2011, 01:36 AM
RE: Using DP to define windows - by rajpes - 07-15-2011, 09:30 AM
RE: Using DP to define windows - by mrerek - 07-16-2011, 12:51 AM
RE: Using DP to define windows - by rajpes - 07-16-2011, 11:54 AM
RE: Using DP to define windows - by mrerek - 07-18-2011, 10:22 PM
RE: Using DP to define windows - by rajpes - 07-19-2011, 11:39 AM
RE: Using DP to define windows - by mrerek - 07-21-2011, 12:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What are different types of Function we define in UFT? amit25007 1 3,287 03-09-2016, 09:08 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 3 Guest(s)