Selenium Excercises - Please help

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Selenium Excercises - Please help

Sam das
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium Excercises - Please help

Reed Xia
I think you may use HttpClient(see http://hc.apache.org/httpclient-3.x/tutorial.htmlfor the API test exercise, you need generate a HTTP request and analyse the response.

For the 2nd, it looks not hard, which step is blocking you now?

On Tue, May 29, 2018 at 1:41 AM, Sam das <[hidden email]> wrote:
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAB_-H0_zn847Ljj0aL6C9EYRpGzVi2REC52jeJQo9_-KUKPukg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium Excercises - Please help

Sam das
Thank you. 

On Mon, May 28, 2018 at 8:30 PM, Reed Xia <[hidden email]> wrote:
I think you may use HttpClient(see http://hc.apache.org/httpclient-3.x/tutorial.htmlfor the API test exercise, you need generate a HTTP request and analyse the response.

For the 2nd, it looks not hard, which step is blocking you now?

On Tue, May 29, 2018 at 1:41 AM, Sam das <[hidden email]> wrote:
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAB_-H0_zn847Ljj0aL6C9EYRpGzVi2REC52jeJQo9_-KUKPukg%40mail.gmail.com.

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJSsFAtshsjUEdZ8h0R05%3DimVTJLaqMZVwSWq_79tz4C%3DScWwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium Excercises - Please help

Boopathi krishnamoorthy
In reply to this post by Sam das
Hi Sam,
  Could you please post the code here for both Api and ui which you written after you got solution from the team so that everyone I'll get an idea on this Api scripting. 

Thanks 
Boopathi 

On Tue 29 May, 2018, 8:21 AM Sam das, <[hidden email]> wrote:
Boxbe This message is eligible for Automatic Cleanup! ([hidden email]) Add cleanup rule | More info
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAN0PPjoLJiFCqe9q6%2BouCmxUNLD4Zk3%3Dxn%3DTpi2SmW085P2rMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium Excercises - Please help

Ram Niwas Sahu
did anyone solve this?how did you create the request ?



On Tuesday, 29 May 2018 19:55:42 UTC+5:30, Boopathi krishnamoorthy wrote:
Hi Sam,
  Could you please post the code here for both Api and ui which you written after you got solution from the team so that everyone I'll get an idea on this Api scripting. 

Thanks 
Boopathi 

On Tue 29 May, 2018, 8:21 AM Sam das, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5BWF22KnDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rat...@...> wrote:
<a href="https://www.boxbe.com/overview" style="text-decoration:none;color:#5e96ea" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.boxbe.com%2Foverview\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHi36qaLKlKZVbMLEKFZ_gVzG4Kug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.boxbe.com%2Foverview\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHi36qaLKlKZVbMLEKFZ_gVzG4Kug&#39;;return true;">Boxbe This message is eligible for Automatic Cleanup! (<a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="5BWF22KnDQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rat...@...) <a style="text-decoration:none;color:#5e96ea" href="https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D%252BZobR39vkkUPnTbgIGAB8B0mrKxqYtP6IT5MxHaKHAI%253D%26token%3Dz6S0mbaIi0W4VPr1bl1V01GIcGtRg0JScGgxJhVgavDtLGY5DfqWQpQkw6trB2wtPYNMawG53bGoWVicsoNHa%252BPbZGtwiHZZJtdBldrpZ9dxIB0ZZUQ4%252FdPrrRj7e%252B9q7l5X7vOvssM%253D&amp;tc_serial=39688025475&amp;tc_rand=2090776367&amp;utm_source=stf&amp;utm_medium=email&amp;utm_campaign=ANNO_CLEANUP_ADD&amp;utm_content=001" title="Add a new automatic cleanup rule" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.boxbe.com%2Fpopup%3Furl%3Dhttps%253A%252F%252Fwww.boxbe.com%252Fcleanup%253Fkey%253D%25252BZobR39vkkUPnTbgIGAB8B0mrKxqYtP6IT5MxHaKHAI%25253D%2526token%253Dz6S0mbaIi0W4VPr1bl1V01GIcGtRg0JScGgxJhVgavDtLGY5DfqWQpQkw6trB2wtPYNMawG53bGoWVicsoNHa%25252BPbZGtwiHZZJtdBldrpZ9dxIB0ZZUQ4%25252FdPrrRj7e%25252B9q7l5X7vOvssM%25253D%26tc_serial%3D39688025475%26tc_rand%3D2090776367%26utm_source%3Dstf%26utm_medium%3Demail%26utm_campaign%3DANNO_CLEANUP_ADD%26utm_content%3D001\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEouBXtHmsRLJu3oQ2oD8AN31TEUg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.boxbe.com%2Fpopup%3Furl%3Dhttps%253A%252F%252Fwww.boxbe.com%252Fcleanup%253Fkey%253D%25252BZobR39vkkUPnTbgIGAB8B0mrKxqYtP6IT5MxHaKHAI%25253D%2526token%253Dz6S0mbaIi0W4VPr1bl1V01GIcGtRg0JScGgxJhVgavDtLGY5DfqWQpQkw6trB2wtPYNMawG53bGoWVicsoNHa%25252BPbZGtwiHZZJtdBldrpZ9dxIB0ZZUQ4%25252FdPrrRj7e%25252B9q7l5X7vOvssM%25253D%26tc_serial%3D39688025475%26tc_rand%3D2090776367%26utm_source%3Dstf%26utm_medium%3Demail%26utm_campaign%3DANNO_CLEANUP_ADD%26utm_content%3D001\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEouBXtHmsRLJu3oQ2oD8AN31TEUg&#39;;return true;">Add cleanup rule | <a style="text-decoration:none;color:#5e96ea" href="http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=39688025475&amp;tc_rand=2090776367&amp;utm_source=stf&amp;utm_medium=email&amp;utm_campaign=ANNO_CLEANUP_ADD&amp;utm_content=001" title="Get info on automatic cleanup" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.boxbe.com%2Fgeneral%2Fboxbe-automatic-cleanup%3Ftc_serial%3D39688025475%26tc_rand%3D2090776367%26utm_source%3Dstf%26utm_medium%3Demail%26utm_campaign%3DANNO_CLEANUP_ADD%26utm_content%3D001\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH9gerVx6VPUEtLo73VGD2dvDx2ng&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fblog.boxbe.com%2Fgeneral%2Fboxbe-automatic-cleanup%3Ftc_serial%3D39688025475%26tc_rand%3D2090776367%26utm_source%3Dstf%26utm_medium%3Demail%26utm_campaign%3DANNO_CLEANUP_ADD%26utm_content%3D001\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH9gerVx6VPUEtLo73VGD2dvDx2ng&#39;;return true;">More info
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to <a href="https://sfbay.craigslist.org/" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsfbay.craigslist.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqPT5tnb4Yb2UwUKobSNjMAfCszA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsfbay.craigslist.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqPT5tnb4Yb2UwUKobSNjMAfCszA&#39;;return true;">https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to <a href="https://sfbay.craigslist.org/" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsfbay.craigslist.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqPT5tnb4Yb2UwUKobSNjMAfCszA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsfbay.craigslist.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqPT5tnb4Yb2UwUKobSNjMAfCszA&#39;;return true;">https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


--
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 <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="5BWF22KnDQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="5BWF22KnDQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/06761449-6db3-4b7b-aaed-9837111afa8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.