自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(48)
  • 收藏
  • 关注

原创 What is he importance of testing.xml file?

In a selenium TestNG project, we use testing.xml file to configure the complete test suite in a single file. TestNG.xml file allows to include and exclude the execution of test methods and test grou...

2019-06-13 17:42:29 173

原创 What are the advantage of TestNG?

1. TestNG provides parallel execution of test methods 2. It allows to define dependency of one test method over other method 3. It allows to assign priority to test methods4. It allows to groupi...

2019-06-13 17:39:35 153

原创 Some scenarios which can not using Selenium

Bigmap comparison Captcha and bar code Don’t support any non_web based (Like Win 32, Java Applet, Java Swing, Net Client Server etc) applications Windows OS based pop-up Third part calendar Imag...

2019-05-31 17:19:10 132

原创 driver.close() VS. driver.quit()

Id Detail driver.quit() It basically calls driver.dispose() method which in turn clos...

2019-05-29 11:27:43 365

原创 The ways to refresh a browser using Selenium WebDriver

ID Way Detail 1 driver.get(url) To open an URL and it will wait till the whole page get loaded. When the page is loading, selenium will ...

2019-05-29 11:27:03 115

原创 driver.get(url) VS. driver.navigate.to(url)

Id Detail driver.get(url) To open an URL and it will wait till the whole page get loaded. When the page is loading, selenium will not perform any action unti...

2019-05-28 17:35:53 793

原创 send keys by JS

send keys by JSJavascriptExecutor JS =(JavasciptExecutor)driver;Js.executeScript("document.getElementtById('User').value='test'")

2019-05-28 17:04:22 415

原创 Exceptions in Selenium WebDriver

Id Detail WebDriverException Mismatching between webdriver version and browser version TimeoutException Give Explicitly wait or implicitly wai...

2019-05-28 16:40:35 156

原创 Xpath

Id Detail What is XPath XPath is used to locate the elements using XPath, we could navigate through elements and attributes in an XML documents to locate web elem...

2019-05-27 16:06:47 112

原创 Xpath VS. cssSelector

Id Detail XPath Using XPaths we can traverse up in the document i.e. we can move to parent elements. cssSelector Only move downwards in the...

2019-05-27 15:44:36 206

原创 What are available drivers in WebDriver?

ØFirefoxDriverØInternetExplorerDriverØChromeDriverØSafariDriverØOperaDriverØAndroidDriverØIPhoneDriverØHtmlUnitDriver

2019-05-27 15:42:53 176

原创 What are the limitations of Selenium?

ØSelenium supports testing of only web-based applicationsØMobile applications cannot be tested using SeleniumØCaptch and Barcode readers cannot be tested using SeleniumØReports can only be gener...

2019-05-27 15:42:26 105

原创 Why should Selenium be selected as a test tool?

ØIs a free and open sourceØHave a large user base and helping communitiesØHave cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari etc.)ØHave great platform compatibility (Wi...

2019-05-27 15:41:56 175

原创 What are the benefits of Automation Testing?

ØSupports execution of repeated test casesØAids in testing a large test matrixØEnables parallel executionØEncourages unattended executionØImproves accuracy thereby reducing human-generated err...

2019-05-27 15:41:22 147

原创 What is Automation Testing?

Automation testing or Test Automation is a process of automating the manual process to test the application/system under test. Automation testing involves the use of a separate testing tool which lets...

2019-05-27 15:40:45 198

原创 Selenium components

Selenium Integrated Development Environment (IDE) – Selenium IDE is a record and playback tool. It is distributed as a Firefox Plugin. It is the simplest framework in the Selenium Suite. It allows us ...

2019-05-27 15:05:40 129

原创 TestNG - Indicate environment and browser as parameter, set up value in Xml file.

Set up parameter inTestNG classThere is a class named Config which focuses on set up environment and browser, here just use it @BeforeClass @Parameters({"environment"}) public void s...

2019-05-22 15:16:58 152

原创 Selenium Workflow

2019-05-22 14:15:05 127

原创 Framework - Java+Selenium+TestNG

How to use it: 1. Create test case which extends BaseTestCase, or BaseWebTestCase. 2. Create testNG test suite xml files. Setting parameters url, browser and environment....

2019-05-22 14:13:00 162

原创 Switch Window

If the new window wiht name attribute:driver.switchTo().window(<windowName>);Otherwise: public static final boolean switchToWindowByTitle(final String windowTitle) { String ...

2019-05-21 17:48:19 705

原创 Take Screenshot, and take screenshot on failure

public final class SeleniumUtils { public static String SCREENSHOT_PATH = "./screen_shots/"; private static final Logger log = LoggerFactory.getLogger(SeleniumUtils.class); public static...

2019-05-21 16:32:03 476

原创 Drag and Drop

Drag and drop single elementActions action = new Actions (driver);action.dragAndDrop(sourceElement, targetElement).perform();Drag and Drop multiple elementsDrag source element, and move Elem...

2019-05-21 10:00:58 203

原创 Using JavaScript in Selenium

1. Scroll page: public static final void scrollToTop() { ((JavascriptExecutor) Config.driver()).executeScript("scrollTo(0, 0)"); } public static final void scrollToBottom() ...

2019-05-21 09:17:14 135

原创 Selenium Grid

Id Detail What is Selenium-Grid? Selenium-Grid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tes...

2019-05-20 15:50:22 139

原创 DB related: backup, restore, quary, update

1. On common layer, define DBRestoreUtils, and DBUtils2. On page layer, use above public void backUpDemo() throws Exception{ Connection cn = DBUtils.getConnection("oracle_"); ...

2019-05-20 15:34:32 146

原创 Download CSV and compare content

On page layer, define download and compare method: public List<String> downloadReport(int index){ WebElement locator = driver.findElement(By.cssSelector("a[title='Download']")); ...

2019-05-20 15:20:27 112

原创 API VS. GUI

Id Detail Graphical user interface testing. A testing framework that generates user interface events such as keystrokes and mouse clicks, and observes the changes t...

2019-05-20 10:59:36 344

原创 SetUp Driver

Managedriver via a common class: Configpublic final class Config { private static final String DEFAULT_BROWSER = "ie"; private static Logger log = LoggerFactory.getLogger(Config.class);...

2019-05-20 10:11:34 538

原创 By ID/Name VS. xpath Vs. link text

Id Detail Using an element ID or name locator Most efficient in terms of test performance Makes your test code more readable, assuming the ID or name within the...

2019-05-15 15:00:36 142

原创 Page Object Model/Page Factory VS. User Interface Mapping

Page Object Model Id Detail Define A page object is an object-oriented class that serves as an interface to a page of your AUT. The tests then use the methods of ...

2019-05-15 14:58:49 133

原创 Assert VS. Verify

Id Detail Assert If you use an assert, the test will stop at that point and not run any subsequent checks. The advantage: you have an immediate visual of whethe...

2019-05-15 14:56:20 153

原创 Explicit Wait VS. Implicit Wait

Id Detail Explicit Wait This waits up to 10 seconds before throwing a TimeoutException or if it finds the element will return it in 0 - 10 seconds. WebDriverWait by de...

2019-05-15 14:55:18 170

原创 HtmlUnit Driver

Id Detail HtmlUnit Driver This is currently the fastest and most lightweight implementation of WebDriver. As the name suggests, this is based on HtmlUnit. HtmlUnit ...

2019-05-15 14:44:45 943

原创 WebDriver VS. Selenium-Server

Id Detail WebDriver Run test in your local: If your browser and tests will all run on the same machine, and your tests only use the WebDriver API, then you do ...

2019-05-15 14:44:05 231

原创 Selenium 1 VS Selenium 2

Summary Detail Selenium 1 2004 when Jason Huggins He developed a Javascript library that could drive interactions with the page, allowing him to automatically rer...

2019-05-15 14:39:44 154

原创 Use Oracle DB from IDE

Eclipse -> Windows -> Show View -> Other -> Data Source Explorer Right click on Data Source Explorer -> Database Connections -> new On new Connection Profile, 1). on Connection...

2019-05-15 14:21:58 126

原创 Update maven setting to user settings of .m2 under current user on IDE

1. Update Setting for Eclipsea. Update user settings under MavenWindow ->Preferences-> Maven-> User settingb. Update “Available Software Sites” settingLocation: Window-> Prefer...

2019-05-15 11:01:56 118

原创 Set up Nexus

Run “mvn” comment under cmd: generate .m2 file under current user Install the certificate of the company Copy “settings-security.xml” to .m2 under current userRun: mvn –emp ******Copy the encrypte...

2019-05-15 10:56:56 136

原创 Handle league tree

Tree structure is same for each championship year. But the id of new year is different withprevious year. So we did not use id to handle this tree instead of DOM Tree. When found elements and try

2017-03-13 13:35:16 224

原创 How to handle blocking clicks

Compare window.open with window.showModalDialog()Functiondetailwindow.open()是非阻塞式,也可以说非模态窗口window.showModalDialog() 阻塞式模态窗口。阻塞或者模态窗口,只有你把当前窗口关闭后,才能去操作

2017-03-09 15:30:32 202

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除