07-18-2011, 10:22 PM
More clarification is needed...
This is what I use to create the randoms strings...
So I utilize the
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
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