Create a child class of basepage for the catalog home page

Assignment Help Python Programming
Reference no: EM131873269

Homework -

Use Python unittest and Selenium WebDriver to create some tests for parts of our university catalog website. We will follow the version of the Page Object.

Copy the page.py, element.py and locators.py files from the readthedocs URL (credit the URL), and edit them to:

Create a child class of BasePage for the catalog home page (URL above) and a base search results page.

Create a child class of the base search results page for the Courses search (for a total of 3 Page object classes)

For the home page, support 

Choosing a search location (the pull-down menu at the top left)

Doing a search (the text field that follows)

For the base search results page, support:

Getting a List of Keyword/Phrase search results (you may choose to have another child class of this class and implement different methods that distinguish Program keyword/phrase results from Course keyword/phrase results)

Checking if there are no results found - this seems to show up only when there are no matches for any of the searches done

Choosing Alphabetical order

Choosing Ranked order

For the results page for a Course search, support:

Getting the Best Match

Getting a List of Prefix/Code matches

Modify the element.py and locators.py to support the above

Create a unittest file "test_cat.py" which includes test cases for the following:

Search for "CS 4320" in Courses and confirm that our course is the "Best Match"

Confirm that for the Ranked option on the results page, our course is also listed at the top of the course list displayed after the "best match"

Confirm that if the Alphabetical option is chosen instead, the first course is a BIOL course

Search for "CS" in Courses and confirm that the Prefix/Code results are all courses starting with the CS prefix

Search for "programming" in Programs and confirm that "Computer Science, B. S.", "Computer Science, M. S." and "Computer Science Minor" all show up on the first page of results

Search for "zzz" in "Courses" and confirm that both Prefix/Code and Keyword/Phrase searches return empty lists ("No matches") and you get no results. Look at the results to see the 3 sections

Search for "CS 4320" without choosing a Search location ("Select an option" is shown) and confirming that you get no results

Because the test cases take some time to execute, you may want to use the @unittest.skip() decorator to skip some of you test cases - just remember to remove the skip's when getting ready to submit your assignment.

Attachment:- Assignment File.rar

Reference no: EM131873269

Questions Cloud

Master program is looking for individuals : Master program is looking for individuals who will be future leaders or influencers in their home countries.
What is the value of safeco stock when the required return : What is the value of Safeco stock when the required return is 11 percent?
What concepts and ideas will be most useful to you : In this final Discussion thread, please address the following for course Strategic Management. What concepts were most interesting to you?
What is return shareholders are expecting : What is the return shareholders are expecting?
Create a child class of basepage for the catalog home page : CS 4320 Homework - Use Python unittest and Selenium WebDriver to create some tests for parts of our university catalog website
Calculate an expected value for each decision : Second, develop a decision model for the decision. Assign a probability of acceptance to each ofthe three proposals and calculate an expected value for each.
Discuss basic principles of business process management : Fernando is forming a business process management team whose task is to develop a better way to control inventory. In keeping with the basic principles.
What is buckley corporation realized gain or loss : What is MDC Corporation’s realized gain or loss? What is Buckley Corporation’s realized gain or loss? What is MDC shareholder’s realized gain or loss?
Determining the financial success of a hospital : The fates of hospitals and physicians are closely intertwined these days. In fact, the practice behaviors of physicians are crucial for determining.

Reviews

len1873269

2/21/2018 11:23:57 PM

Use Python unittest and Selenium WebDriver to create some tests for parts of our university catalog website:. Because the test cases take some time to execute, you may want to use the @unittest.skip() decorator to skip some of you test cases – just remember to remove the skip's when getting ready to submit your assignment. Grading - 60% for the page object-related classes, 20% for the test methods, 10% for meaningful naming of variables, functions, classes and 10% for comments: there should be at least one meaningful comment for each method and each class.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd