程序代写案例-E2E

欢迎使用51辅导,51作业君孵化低价透明的学长辅导平台,服务保持优质,平均费用压低50%以上! 51fudao.top
E2E Testing Assignment

To demonstrate the use of the Selenium IDE tool, the tasks attached with this
document. You are supposed to create Seleni
um test cases for any of the 5 tasks
out of the 7 tasks mentioned in the Tasks file. A test case must be recorded in
such a way that it can perform one task. So over all 5 test cases are expected,
each worth 10 points.
Step 1) Download and install Selenium IDE. (
Step 2) Create a new project and record the tasks as you perform them.
Step 3) Verify the test case was recorded well and can be replayed back.
• Change the addressing scheme if selenium is unable to find the
specific DOM element.
• Ensure the recording is replayed back.
• Add “assert element present” statements if required to test the
element is indeed present on the DOM.
Step 4) Save the Project as .side
Step 5) Create a small card with steps you took to complete the task . (Template
attached with this document)
Tasks
1) Create a new Repository
2) Change the repository name
3) Disable Actions
4) Change your Name on public profile.
5) Goto your profile, click on “Edit profile” add a Bio.
6) Search for repository “ninadpchaudhari/React-Tutorial” add a new issue.
7) Search for repository “ninadpchaudhari/React-Tutorial” click on Star.




Template for Test case card:


Rubric for each test case:
The .side file should be importable into any selenium IDE, and each test case
would be graded on following rubric.
Card and Test Exists: 10/10
Works with minor modifications(not more than 2): 7/10
Major Modifications: 5/10
Does not work at all / Verification not done.: 0/10

Instructions & Example of a similar project.

Step 1) Download and Install Selenium IDE.
1.1 Link https://chrome.google.com/webstore/detail/selenium-
ide/mooikfkahbdckldjjndioackbalphokd?hl=en

1.2 Launch the IDE from chrome







2) Create a new project and record test cases.
2.1) Click on “Record a new Test in a new Project”

1.4 Enter a Project name


2.2) Enter the base URL as https://kf6.rit.albany.edu Then click on “Start
Recording”


You can begin recording your test cases now.

2.3) Ensure, you can see “Selenium IDE is recording..” in bottom and then enter
your username and password, click on the first community, then click on the
“New Note button”










2.4) Enter the required text as mentioned in the “tasks” document then click on
“contribute”










2.5) Now use “Alt+Tab” to load the Selenium IDE from background





2.6) Click on the “stop recording button”, then give the test a name,.
DONE! You have recorded your first test case.

Just exploring the IDE: The Floppy disk icon on the top is used to save your current
project.







The “+” icon can be used to create a new test case











Once a new test case is created, the :REC button can be used to start recording
your actions.












The highlighted area lists all of your tests in current project [ Notice the “Tests” on
top








Step 3) Verify Your test works.
3.1) Select the first test you recorded / the one you want to ensure works fine.
3.2) Click on the “Run Current Test” Button


Ensure that the entire test passes. You should get “Passes” and all steps should
turn green.


3.3) Amend the addresses in case something fails.
For eg. While running the 1st task, you will encounter the following error:


Here Selenium failed to find an element with address of “ng-dirty”! You can
change the address the selenium should check for to perform the action on.





Steps to change the addressing scheme :
Select the line which fails to execute, then select the field to the right of “Target”









3.4) Judge which address most accurately addresses the element which has tobe
acted upon.
in this case, the 3rd option seems the best. Click on the same.
Similarly change any addresses which do not correctly address the element which
is required.
After you correct the same, click on the “Run Current Test” Button.
You should see Runs : 0, Failures: 0




Step 4) Record all of the test cases in the current project, then save.
Reminder: You might have to goto the “Tests” Tab again after one test case is
executed.








4.1) TO record the next test case, click on the “+” in your tests List.


Enter the test name, then start recording using the Rec button on the right top.
Follow similar steps for each test case.





4.3) To save the project.
You should always keep on saving your project periodically to prevent data loss in
case something unfortunate happens.
To save, click on the “floppy disk” icon








4.4) IN the dialog that opens, enter the file name you wish to save your project. In
our case : netID.side



Upload this file (Along with the test case card) on blackboard.


欢迎咨询51作业君
51作业君

Email:51zuoyejun

@gmail.com

添加客服微信: abby12468