Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we open a password protected zip file using QTP?
#3
Not Solved
Password is unique, using regular expression concept for this doesnt make sense

'Just use looping

Code:
alphabets=array("a","b",......."z")



'8 for loops
  'for single letter check eg:a,b...z
for i=0 to 25
   pwd= alphabets(i)
     'use this pwd and check if it is correct password, if yes,print it and ExitTest
    
    'for 2 letters check eg:aa,ab....az
    for j=0 to 25
    pwd=alphabets(i)&alphabets(j)
    'use this pwd and check if it is correct password, if yes,print it and ExitTest
    next

    
    
    'for 3 letters check eg:aaa...aaz,aba..abz.....azz
    for j=0 to 25
        for k=0 to 25
        pwd=alphabets(i)&alphabets(j)&alphabets(k)
        'use this pwd and check if it is correct password, if yes,print it and ExitTest
        next
    next


   'for 4 letters check eg:aaaa........aaaz............azzz
    for j=0 to 25
        for k=0 to 25
            for l=0 to 25
                pwd=alphabets(i)&alphabets(j)&alphabets(k)&alphabets(l)
                'use this pwd and check if it is correct password, if yes,print it and ExitTest
                          next
                 next
         next

'
'
'
'Continue this pattern upto 8 letters
'
'
'
'



next
Reply


Messages In This Thread
RE: do any 1 help..??? - by tarun - 06-28-2011, 07:37 PM
RE: Can we open a password protected zip file using QTP? - by rajpes - 07-03-2011, 09:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Export to Excel Error with file being open schulerswanie 2 4,986 07-10-2012, 11:46 AM
Last Post: Ankesh
  Validating Password field John087 1 4,554 06-18-2012, 04:34 PM
Last Post: Ankesh
  Regular Expression for a Password ritesh 3 4,239 11-16-2010, 03:54 PM
Last Post: ngocvo3103

Forum Jump:


Users browsing this thread: 1 Guest(s)