Or, simply request the information during testing...

puts "Username: "
username = gets
puts "Password: "
password = gets # this should be a call to readline so you can hide
it, but I haven't figured out how to do that yet.

anyways, ... done.

j.

On 10/25/05, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> At 10:37 AM 10/25/2005, Dale Herrig wrote:
> >I developed a test script to login using the following:
> >
> >  ie.text_field(:name,"id").set("username")
> >  ie.text_field(:name,"passwd").set("password")
> >
> >This works just fine but I had to hardcode the password. We have some
> >concerns about clear text passwords in scripts.
> >
> >So the question is, is there a way to create an encrypted password and
> >store in a binary file and then have the test script read the binary file
> >and encode the password, perhaps something like:
> >
> >ie.text_field(:name,"passwd").setEncrypted(password.encrypted.file)
> >
> >I did not find anything in the archive about this, but perhaps I missed.
>
> Where would you store the encryption key? How would you store it? As clear
> text?
>
> The common solution to this problem is to put the passwords in a separate
> file that is not stored with the scripts. This avoids hard-coding.
>
>    require 'passwords'
>    ie.text_field(:name, "passwd").set($user_password)
>
> Your suggested use of encryption sounds like waving a magic wand without
> really protecting anything. I am sure that there is a way to do what you
> ask, but i just don't see the point.
>
> Bret
>
>
> _____________________
>   Bret Pettichord
>   www.pettichord.com
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>


--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to