GithubHelp home page GithubHelp logo

vibhudadhichi / salesforce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boremusma/salesforce

0.0 1.0 0.0 32.67 MB

The interview assessment

C 0.01% C++ 0.01% HTML 41.09% CSS 1.07% Java 57.84%

salesforce's Introduction

############################################################## Author ############################################################# Bo Ma

####################################################################################### Summary #######################################################################################

This project covers the salesforce SDET interview assessment provide by Jordan Dapper. ################################################################################################# Design #################################################################################################

com.salesforce.base --> package contains the abstract superclass for page objects and tests. com.salesforce.pages --> package contains all the page objects include: Login, Home, Leads, Campaigns. com.salesforce.tests --> package contains all the test cases and test suites. com.salesforce.utils --> package contains help classes include WebDriverGenerator(Singleton) and so on.

config --> folder has all the property files for page/tests, please use the same name for the property file and its corresponding class. To modify test data, please change variable in config/test/MainTest. jars --> folder contains selenium, junit, log4j JAR files. logs --> folder store log4j generated logs. build.xml --> the ant build file for the project.

################################################################################################################################# Requirement #################################################################################################################################

URL: login.salesforce.com User name: [email protected] Temporary password: jVpGt4qiPjVpGt4qiP

  1. Create appropriate Classes/Methods/Locators to handle the following activities:

A. Login to salesforce using the credentials above. Check for and gracefully handle a login error B. Select from the dropdown in the top right corner (you want to be able to select 'Sales') C. Select an 'Object' from the top tab bar. Example objects are: 'Leads', 'Accounts', 'Contacts', 'Opportunities' D. Set the View Filter to 'All Leads' E. Checkmarkthe record 'Mui, Rick' F. On the Leads Home Page, select a record from the Leads table G. On the Leads Home Page, checkmark a specific record in the table as well as a method to click 'Del' H. A method to accept/cancel 'Alerts', such as those that pop up when you click 'Del' as mentioned above.

Note: All methods should have some form of logging, appropriate wait conditions, and some form of error handling. All locators should be By objects. Furthermore, all methods should be structured in classes following the page-object model convention. If you are not familiar with this approach, please research this before starting.

Note: All Locators should be defined using well-formed XPATH's. We suggest using Firebug/Firepath to investigate the DOM, but do not Firepaths' generated xpath. Create your own that does not break from run to run. ID's in Salesforce DO NOT persist.

Bonus: When on the Leads Home Page, checkmark a passed in users record, and click 'Add to Campaign'. On the resulting page, there will be a field 'Campaign' with an associated button that performs a lookup. Using the term 'Automation Campaign', create a method to use the lookup and resulting popout window to search for and successfully select the term 'Automation Campaign'

  1. Create a test using the above classes. The test should be in a JUnit format. Create the following workflow.

A. Login B. Select the app 'Sales' from the top right dropdown C. Click on the tab 'Leads' D. Set the View Filter to 'Hot Leads' E. Checkmark the record 'Bell, Ken' F. Click 'Del' as associated with that record E. Accept Alert F. Assert that the record no longer exists within the table after deleting

  1. Upon completion, upload all class contents, including imports, to PasteBin or Git, and email me the link.

Bonus: Compile using ANT and include the ANT script with the source

salesforce's People

Watchers

VIBHU DADHICHI avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.