How to create jar or flag for username and password in selenium

14 views
Skip to first unread message

monika16jha

unread,
Jul 31, 2018, 4:07:49 AM7/31/18
to Selenium Users
Hi team,



How to create jar for username and password or need to create flag for username and password.

Please help.

⇜Krishnan Mahadevan⇝

unread,
Jul 31, 2018, 4:14:42 AM7/31/18
to seleniu...@googlegroups.com
It's not clear what you are asking. Can you please elaborate more on what you are trying to do ?

Selenium is not involved in creation of jars. That would be typically done by build tools such as maven or gradle 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/92d36e8d-3a9c-4f30-9a32-6c8d9175bf36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

monika16jha .

unread,
Jul 31, 2018, 4:18:38 AM7/31/18
to seleniu...@googlegroups.com
below is the requirement so team suggested to create jar for this:

here login and password are using multiple times for different methods.

Current state: Data for each test must be repeated for each test which can lead to unexpected discrepancies and requires excessive effort to maintain.

Desired state: Each test method can receive a reference to the data it needs, so that data is only defined once and there is only one place to change data so that it's easier to maintain and impossible to introduce discrepancies.


On Tue, Jul 31, 2018 at 1:44 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
It's not clear what you are asking. Can you please elaborate more on what you are trying to do ?

Selenium is not involved in creation of jars. That would be typically done by build tools such as maven or gradle 
On Tue 31 Jul, 2018, 13:38 monika16jha, <monika...@gmail.com> wrote:
Hi team,



How to create jar for username and password or need to create flag for username and password.

Please help.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLkffdkpTnOCx%3D0HRFvz4AdMCcnJ_WtDPSjjE1cKj1nM5g%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--



Thanks and Regards,

Monika Jha

⇜Krishnan Mahadevan⇝

unread,
Jul 31, 2018, 4:24:15 AM7/31/18
to seleniu...@googlegroups.com
It's still not clear as to how selenium is involved here. What you are asking for looks like a use case for a data driven method in a test framework such as TestNG. 

So you might want to post your query on the TestNG users Google forum with more info including what code you have so far and where you are stuck and need help. 

On Tue 31 Jul, 2018, 13:48 monika16jha ., <monika...@gmail.com> wrote:
below is the requirement so team suggested to create jar for this:

here login and password are using multiple times for different methods.

Current state: Data for each test must be repeated for each test which can lead to unexpected discrepancies and requires excessive effort to maintain.

Desired state: Each test method can receive a reference to the data it needs, so that data is only defined once and there is only one place to change data so that it's easier to maintain and impossible to introduce discrepancies.


On Tue, Jul 31, 2018 at 1:44 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
It's not clear what you are asking. Can you please elaborate more on what you are trying to do ?

Selenium is not involved in creation of jars. That would be typically done by build tools such as maven or gradle 
On Tue 31 Jul, 2018, 13:38 monika16jha, <monika...@gmail.com> wrote:
Hi team,



How to create jar for username and password or need to create flag for username and password.

Please help.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--



Thanks and Regards,

Monika Jha

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAGHNrZJRijZUCVN6JMBfaNE-EO63tkhMSQa782YJpsUH8GnbEQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

monika16jha .

unread,
Jul 31, 2018, 5:06:49 AM7/31/18
to seleniu...@googlegroups.com
I posted there but didn't get any reply yet.


===================================
Hi Naveen,

How can i create utility and resuse the same. Please share some details.


On Tue, Jul 31, 2018 at 1:53 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
It's still not clear as to how selenium is involved here. What you are asking for looks like a use case for a data driven method in a test framework such as TestNG. 

So you might want to post your query on the TestNG users Google forum with more info including what code you have so far and where you are stuck and need help. 

On Tue 31 Jul, 2018, 13:48 monika16jha ., <monika...@gmail.com> wrote:
below is the requirement so team suggested to create jar for this:

here login and password are using multiple times for different methods.

Current state: Data for each test must be repeated for each test which can lead to unexpected discrepancies and requires excessive effort to maintain.

Desired state: Each test method can receive a reference to the data it needs, so that data is only defined once and there is only one place to change data so that it's easier to maintain and impossible to introduce discrepancies.


On Tue, Jul 31, 2018 at 1:44 PM, ⇜Krishnan Mahadevan⇝ <krishnan.mahadevan1978@gmail.com> wrote:
It's not clear what you are asking. Can you please elaborate more on what you are trying to do ?

Selenium is not involved in creation of jars. That would be typically done by build tools such as maven or gradle 
On Tue 31 Jul, 2018, 13:38 monika16jha, <monika...@gmail.com> wrote:
Hi team,



How to create jar for username and password or need to create flag for username and password.

Please help.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--



Thanks and Regards,

Monika Jha

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLkDXMzQc2rKYMU2pom8vyyNhYffuDMMOtGAV1AbbC1c6Q%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages