Help in retrving password!! - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Help in retrving password!! (/Thread-Help-in-retrving-password) |
Help in retrving password!! - wannalearn_qtp - 01-06-2010 Hi Again, Good Morning. Last time Saket really helped me get over an issue. Thanks a ton. I have another issue here. when i create an user in my application: - The Password for the user goes to the mail. - If i create 100 users, the 100th user's password would be mail number 1. - The Mail is not outlook, but its a webmail. - When i type the mail url [ eg: https:// aaa.aaa.com/aaa ] , a popup appears asking me to type in the username and password for the mail and click ok. - the body of the mail is as follows : Dear <Username>, The Password for <Firstname? <Lastname> is as follows, ftre445bab4367. Please change it in the first login. Please contact adminsitrator if you cannot login. - I need to get only the password from the mail. Can somebody help? any pseudocode would be apprecaited. Thanks, SK RE: Help in retrving password!! - basanth27 - 01-07-2010 Heard About Parsing ? Well, the question asked could be tricky but you may need to do few trial & error before you get the solution. Here is a lead, 1. Copy the text into a text file. 2. Read line by line 3. See if you get the password field after a particular line or any indication or pointer to the password field. RE: Help in retrving password!! - kamalteja - 01-08-2010 Based on the text you've given that would appear in the prompt, there is only one comma (,), so you can use the split command and split the text. Ex: first move the text to a variable ABC MyArray = Split(ABC, ",", -1, 1) Passwordone = MyArray(1) Now the vairable "Passwordone" would have the password you need |