Pros and cons of end to end testing tools

本贴最后更新于 2072 天前,其中的信息可能已经时移世改

My background in test automation is based on using Selenium WebDriver and Java. Since JavaScript has been widely used for testing web applications, I have decided to investigate tools currently available on the market. I will use these tools to make different scripts and hence find their advantages and disadvantages.

I have investigated the following tools and syntax for automation:

  1. Selenium Webdriver + Java
  2. Selenium WebDriver + Cucumber + Java
  3. Selenium WebDriver + Jasmine syntax for JavaScript applications
  4. Selenium WebDriver + Mocha syntax for JavaScript applications
  5. Cypress
  6. Selenium WebDriver + Protractor
  7. Selenium WebDriver + NightWatch
  8. Selenium WebDriver + WebDriverIO

The focus of this article is not on finding advantages or disadvantages of Selenium WebDriver, but I mainly focus on investigating the pros and the cons of different tools/frameworks in combination with Selenium WebDriver. Thus this article may be useful for those who already know Selenium and would like to gain knowledge of using different tools in combination with Selenium.

I have created a simple test and will try to implement its script by using all the above automation tools. I have chosen Amazon website as most of its elements are identified by an id and this makes it easy to find an element.

1. Let us start from the first one in the above list, which is** “Selenium WebDriver + Java”.** For many years this has been a popular style for making automation and I personally have been using it. In the following you see a test that is implemented in this style.


// open a browser
driver.get("https://www.amazon.com/");

// click on Your Amazon.com link
WebElement yourAmazon = driver.findElement(By.id("nav-your-amazon"));
yourAmazon.click();

// enter your email address
WebElement email = driver.findElement(By.id("ap_email"));
email.sendKeys("Test123@email.com");

// enter your password address
WebElement password = driver.findElement(By.id("ap_password"));
password.sendKeys("1234");

//press sign in button
WebElement signIn =driver.findElement(By.id("signInSubmit"));
signIn.click();

// check if the error message is displayed
WebElement errorMessageBox = driver.findElement(By.id("auth-error-message-box"));
errorMessageBox.isDisplayed();

//close browser
driver.close();

After making the above script, advantages of this style can be summarized as follows:

  • It has a quick and popular setup. For setting up this test, you only need to import Driver and the Selenium library Java. If you need more information on how to set up your test, please read here: https://www.guru99.com/intellij-selenium-webdriver.html
  • If any help in making scripts is needed, there are lots of sources available online that can be used by testers.
  • A very basic knowledge of Java is enough for implementing the scripts.
  • Java structure can be adjusted quite easily within a development team who know the Java. I highly recommend using this style if a tester is in a Java team, as it is productive for the team to create scripts. The team members can easily pick up automation tests to help the tester, thus tests are not only implemented by the tester but by the whole team.

Disadvantages of this style can be summarised as follows:

  • It is not possible to add a clear description for each step. If you are looking for a clean syntax, the combination of Java and Selenium doesn’t provide it for you. You can add a description of each step as a comment but this will not be displayed in the logs if the test fails.
  • You can also add a clear error message for each test to make it easier to find the failing step, however it is hard to keep this syntax clean.

=====================================================================================

  1. Selenium WebDriver + Cucumber + Java:

https://www.stevefenton.co.uk/2015/01/getting-started-with-bdd-intellij

The test includes three parts:

  • Feature file, which is a clear description for each step of your test using Gherkin syntax.
  • Step file, which is the script for matching the features and the Java code.
  • TestRun, which is the configuration setup for running your test.

Let’s see how the test is written down :

[1]: Feature file:


Feature: CucumberJava
        Scenario: Login functionality exists
        Given I have open amazon website
        And click on your Amazon.com link
        When  enter username "test@gmail.com" and password "123"
        When press sign in button
        Then the error message box is displayed

[2]: Step file:


   class cucumberJava {
   WebDriver driver = null;

   @Given("^I have open amazon website$")
   public void openBrowser() {
       driver = new FirefoxDriver();
       driver.navigate().to("https://www.amazon.com/");
   }

   @And("^click on your Amazon.com link$")
    public void clickOnYourAmazon(){
       driver.findElement(By.id("nav-your-amazon")).click();
   }

   @When("^enter username \"(.*)\" and password \"(.*)\" $")
      public void UserAndPassword(String username,String password){
        driver.findElement(By.id("ap_email")).sendKeys(username);
        driver.findElement(By.id("ap_password")).sendKeys(password);
   }

   @When("^press sign in button$")
     public void SignInButton(){
          driver.findElement(By.id("signInSubmit")).click();
   }

   @Then("^the error message box is displayed$")
   public void errorMessage() {
       if(driver.findElement(By.id("auth-error-message-boc")).isDisplayed()) {
           System.out.println("Test 1 Pass");
       } else {
           System.out.println("Test 1 Fail");
       }
       driver.close();
   }
}

3. TestRun:

http://blog.scottlogic.com/2017/08/24/adding-webdriver-tests-to-create-react-app-generated-projects.html

The setup is quick and easy, but it has three different parts:

  • Page objects: the place where you find your elements by css/xpath.
  • Specs: for writing the actual script.
  • Configuration files: you can set up your “tear down” over here.

Let us again create our script for checking the correct error message on Amazon and see what the syntax looks like with this structure:

Page object:


const yourAmazonSelector = { css: '#nav-your-amazon' };
const emailSelector = { css: '#ap_email' };
const passwordSelector = { css: '#ap_password' };
const signInSelector = { css: '#signInSubmit' };
const errorMessageSelector = { css: '#auth-error-message-box' };

export const yourAmazon = () => body().findElement(yourAmazonSelector);

export const email = () => body().findElement(emailSelector);

export const password = () => body().findElement(passwordSelector);

export const continueSignIn = () => body().findElement(continueButton);

export const signIn = () => body().findElement(signInSelector);

export const errorMessage = () => body().findElement(errorMessageSelector);

Specs:


import { yourAmazon, email, password, errorMessage, signIn, continueSignIn } from '../pageObjects/app';
import { load } from '../pageObjects/index';

describe('app', async () => {
 beforeAll(async () => {
   await load();

 });

 let randomEmail = Math.random();
 let randomPassword = Math.random();

 it('should display the correct error message for incorrect login details', async () => {
   await yourAmazon().click();
   await email().sendKeys(randomEmail + "@gmail.com");
   await password().sendKeys(randomPassword);
   await signIn().click();
   expect(await errorMessage().isDisplayed()).toBe(true);

 });

});

Advantages:

  • There are no other tools involved in this test, it is only Selenium WebDriver + Jasmine syntax.
  • In Jasmine we need to use the describe function that helps for grouping our tests together.
  • Jasmine comes with a number of matchers that help you make a variety of assertions. You should read the Jasmine documentation to see what they are. To use Jasmine with Karma, some people use the karma-jasmine test runner.
  • It has Angular support.
  • Jasmine's beforeAll() hook is often useful for sharing test setup - either to reduce test run-time or simply to make for more focused test cases and it reduces lines of code too!!

Disadvantages:

  • There is less documentation available for finding information about setting up your css in the case of having multiple ids for one element.
  • It took me a while to figure out how to use “beforeAll()” instead of “beforeEach()” in my specs: if you use “beforeEach” then you can not use nested test steps, because in each step it tries to open a new browser and running a new test and it runs before each 'it' block!! However if you use “beforeAll”, you can have multiple nested steps in the same test.

====================================================================================

4. Selenium WebDriver with Mocha syntax:

Let’s start to make a test with Selenium and Mocha syntax by following this document: http://testerstories.com/2016/02/javascript-with-selenium-webdriver-and-mocha/

The setup was quick and easy. Mocha is a simple, flexible and fun, java-script test framework for node.js and browsers.

Here's the script using Mocha:


 var assert = require('assert'),
   fs = require('fs'),
   test = require('selenium-webdriver/testing'),
   webdriver = require('selenium-webdriver');

test.describe('My Website', function () {
   this.timeout(15000);
   var driver;
   test.before(function () {
       driver = new webdriver.Builder().withCapabilities(webdriver.Capabilities.chrome()).build();
   });

   var emailRandom = Math.random();
   var passwordRandom = Math.random();

   test.it('should display the correct error message with incorrect login information', function () {
       driver.get('https://www.amazon.com/');
       driver.findElement(webdriver.By.id('nav-your-amazon')).click();
       driver.findElement(webdriver.By.id('ap_email')).sendKeys(emailRandom + "@gmail.com");
       driver.findElement(webdriver.By.id('ap_password')).sendKeys(passwordRandom);
       driver.findElement(webdriver.By.id('signInSubmit')).click();
       var errorMessage = driver.findElement(webdriver.By.id('auth-error-message-box')).isDisplayed();
       if (errorMessage == true){
           return true;
       }else return false;
   });
   test.after(function () {
       driver.quit();
   });
});

Advantages:

  • Mocha's before() hook is often useful for sharing test setup - either to reduce test run-time or simply to make for more focused test cases.
  • There are no other tools involved in this test, it is only Selenium WebDriver + Mocha syntax.
  • In Mocha we need to use the describe function that helps for grouping our tests together.

=========================================================================

5. Cypress :

While I was busy with writing this blog post for different tools that use Selenium for end to end testing, cypress got my attention and I started to make a simple script by using Cypress. Cypress doesn’t use Selenium and it is a bit different with the above tools that I have experimented.

The setup was quick and fast, you don't need any special configuration for running your test.

If you are new in using Cypress, you can follow the following website for installing it: https://docs.cypress.io/guides/getting-started/installing-cypress.html#

If you need more sources for getting familiar with cypress, you can use the following: https://example.cypress.io/

I have created my running script for Amazon website here:


describe('should display a correct error message when you enter wrong login information', function () {
 before(function () {
   cy.visit('https://www.amazon.com/')
 })

 var randomEmail = Math.random();
 var randomPassword = Math.random();

 it('displays a correct error message', function () {
   cy.get('#nav-your-amazon').click()
   cy.get('#ap_email').type(randomEmail + '@gmail.com')
   cy.get('#ap_password').type(randomPassword)
   cy.get('#signInSubmit').click()
   cy.get('#auth-error-message-box').should('be.visible')
 })
})

I like cypress a lot because of the following reasons:

  • Cypress does not use Selenium: most of the end to end tools that we have experimented with, are using Selenium, that’s why they have almost the same problems.
  • Cypress supports any framework or website quite well: There are hundreds of projects using the latest React, Angular, Vue, Elm, etc. frameworks. Cypress also works equally well on older server rendered pages or applications.
  • Cypress tests are only written in JavaScript: While you can compile down to JavaScript from any other language, ultimately the test code is executed inside the browser itself. There are no languages or driver bindings - there is and will only ever be just JavaScript.
  • There are no dependencies, you put your test in package.json and that’s it.
  • Cypress runs much, much faster in comparison with the end to end tools by Selenium that we have experimented.
  • There is screen shot for every step, of your script, which can be quite helpful if there is any false passing or failing test, yeah good for debugging!!
  • Cypress has a clear cyntax, it is easy to read it, you will like it!!

Disadvantages:

  • The structure was different to the other Selenium end to end tools, so at first you may need to spend more time understanding the structure and finding the best way to create your scripts.
  • Community: As Cypress is relatively new, the community is small. You will have trouble finding answers to problems etc.
  • Features. No file upload support. No cross-browsers testing. Who knows when these things will be covered, as for big projects these features are crucial.
  • Page Object Model. It is something that has already been proven by time. Cypress supports a different approach which could be controversial. More detail on this is here: Cypress POM
  • It's only available for only one client (language) i.e for JavaScript only. So to work with it you must know JavaScript: however this might be an advantage for JavaScript application, but I would like to put it as a disadvantages for those who have difficulties with javascript.

reference for more information

=============================================================================

6. Protractor tool with Selenium WebDriver :

I followed this tutorial for making my first script with protractor and Selenium WebDriver:https://github.com/angular/protractor/blob/master/docs/tutorial.md

And this is my running script for Amazon website:


 // spec.js
describe('should display a correct error message when I enter wrong login information', function () {
 it('correct error message', function () {
   browser.waitForAngularEnabled(false);
   browser.get('https://www.amazon.com/');

   //click on orders link
   const Orders = element(by.id('nav-orders'));
   Orders.click();
   // enter your email
   const email = element(by.id('ap_email'));
   email.sendKeys('test@gmail.com');
   // enter your password
   const password = element(by.id('ap_password'));
   password.sendKeys('7899');

   //check if the error box is not displayed
   const errorBox1 = element(by.id('auth-warning-message-box'));
   expect(errorBox1.isPresent()).toEqual(false);

   //click on sign in button
   const signIn = element(by.id('signInSubmit'));
   signIn.click();

   // check if the error box is displayed
   const errorBox = element(by.id('auth-error-message-box'));
   expect(errorBox.isDisplayed()).toEqual(true);

   const message = element(by.css('.a-list-item'));
   expect(message.getText()).toEqual('To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below.');

 });
});

Advantages:

  • Suitable for both Angular and non-Angular apps. Protractor gives extra advantages for testing Angular apps but your app should not necessarily use it, If you have an application that is not Angular and you would like to use Protractor, you always need to add the following to your spec BEFORE opening your browsers:

    browser.waitForAngularEnabled(false);
    
  • Protractor has built a support for identifying the elements for angular.js applications which is the following:


 by.binding 
 by.excatBinding 
 by.model 
 by.repeater 
 by.exactRepeater 
 by.options

If you would like to know more about the differences of these Locator Strategies, please read the following article: http://www.webdriverjs.com/angular-specific-locators-in-protractor/

  • Parallel testing through several browsers. It supports cross-browser testing. Even more ,  you can run several browsers instances simultaneously!

Disadvantages:

  • Debugging: I personally found it tricky to debug protractor.
  • It's available for only one client (language) i.e. for JavaScript only. So you must know JavaScript to work with it.
  • It does not support automating mobile Apps.
  • It is implemented as a wrapper to the WebdriverJs. So there is one more layer added in between Selenium server and the Protractor. If there is an issue with WebdriverJs, the Protractor team should wait for the WebDriverJs team to fix that issue.

===================================================================================

7. NightWatch with Selenium WebDriver:

I followed this tutorials for making my first script by NightWatch and Selenium WebDriver: https://github.com/dwyl/learn-nightwatch Below is my script for Amazon website. The test consists of three parts: * Package * Nightwatch configuration file * script The package consisted of the following:


  {
  "name": "nightwatch",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "nightwatch",
    "e2e-setup": "selenium-standalone install"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-plugin-add-module-exports": "^0.2.1",
    "babel-preset-es2015": "^6.24.1",
    "selenium-standalone": "^6.12.0"
  }
}

The configuration file for this script consists of the following:


  {
    "src_folders" : ["tests"],
    "output_folder" : "reports",

    "selenium" : {
      "start_process" : true,
      "server_path" : "bin\selenium-server-standalone-3.3.1.jar",
      "log_path" : "",
      "port" : 4445,
      "cli_args" : {
        "webdriver.chrome.driver" : "bin\chromedriver.exe"
      }
    },

    "test_settings" : {
      "default" : {
        "launch_url" : "http://localhost",
        "selenium_port"  : 4445,
        "selenium_host"  : "localhost",
        "desiredCapabilities": {
          "browserName": "chrome",
          "javascriptEnabled": true,
          "acceptSslCerts": true
        }
      }
    },

    "scripts": {
      "test-e2e": "nightwatch"
    }

  }

There is a bug in NightWatch using Selenium port 4444. The Selenium server didn’t run when I specified port 4444, but it run successfully by changing the port to 4445.

The script looks like this:


module.exports = {
    'Should display a correct error message when you enter a wrong login information' : function (client) {
            client
            .url ('http://www.amazon.com/')
            .waitForElementVisible('body', 1000)
            .click('#nav-orders')
        .setValue('#ap_email', 'test@gmail.com')
        .setValue('#ap_password' ,'123')
        .click('#signInSubmit')
        .assert.visible('#auth-error-message-box')
        .end();

    }
};

Advantages:

  • Clean syntax: Simple but powerful syntax enables you to write tests very quickly.
  • Built-in test runner: Built-in command-line test runner can run the tests either sequentially or in parallel, together, by group, tags, or single.
  • Cloud services support: Works with cloud testing providers, such as SauceLabs and BrowserStack.
  • CSS & Xpath support: Either CSS or Xpath selectors can be used to locate and verify elements on the page or execute commands.
  • Continuous Integration support: JUnit XML reporting is built-in so you can integrate your tests in your build process with systems such as Teamcity, Jenkins, Hudson etc.

Disadvantages:

  • It does not have many choices for unit test frameworks as it has an own testing framework and also support Mocha.
  • Slightly lesser support in compare with WebDriverIO and Protractor.

====================================================================

8. WebDriverIO with Selenium WebDriver: I followed this tutorial for making my first script by WebDriverIO and Selenium WebDriver:http://blog.kevinlamping.com/testing-your-login-an-in-depth-webdriverio-tutorial/

This test also consisted of three parts:

  • package
  • wdio.config
  • script

The package and the configuration file is quite similar to NightWatch test, so I only put the script here:


describe('Login Page', function () {
   it('Should display a correct error message with wrong login information', function () {
       browser.url('/');
       browser.click('#nav-your-amazon');
       browser.setValue('#ap_email', 'test@gmail.com');
       browser.setValue('#ap_password', '123');
       browser.click('#signInSubmit');
       browser.isVisible('#auth-error-message-box')
   })
})

Advantages:

  • It has support for most BDD and TDD test frameworks.
  • It has good support, enthusiastic developer community, and end users which give it an edge over NightwatchJS.
  • It can be used with ‘webdrivercss’ to compare css stylings of an element in the webpage.
  • Works with any testing framework or assertion library: WebdriverIO lets you use your favorite testing framework (Jasmine, Mocha, Cucumber) and assertion library (Chai for Mocha).

Disadvantages:

  • Since it is a custom implementation, it is also a disadvantage as it deviates from generic syntax which may confuse Selenium developers coming from other languages.
  • It can be used for automating AngularJS apps but it is not as customized as Protractor.
  • Must run with WDIO to debug: Tasks written in this beautiful Selenium API can only be debugged using the provided WDIO task runner. You can't set breakpoints within tasks, but you can have WDIO pause the run between Selenium commands.
  • I did not find much documents for latest version (4.0.5)

===============================================================================

Conclusion: In this document we considered a simple test and created its scripts by different end to end testing tools. We have experimented different syntaxes on those scripts. In my opinion the difference between these tools is not huge. The tool should be selected mainly based on your application and knowledge of the team. The latter is very important since automation is not the responsibility of individual team members, rather an entire team should contribute towards it. Learning a new programming or scripting language will definitely enhance the skills of team members but working on a common ground keep all team members motivated.

As a tester, you should find out the answers of the following questions by examining the application you are going to test:

  • Is the application built using Angular, React, etc.?
  • Are you looking for a special testing framework like Jasmine, Mocha, etc.?
  • Are you looking for a tool that supports mobile (APPIUM)?
  • Are you looking to test in any specific browser?

Depending on the answers of the above questions, you can select your suitable tool.

谢谢原作者,博客转自:https://blog.scottlogic.com/2018/01/08/pros-cons-e2e-testing-tools.html

  • App

    App(应用程序,Application 的缩写)一般指手机软件。

    91 引用 • 384 回帖
  • Java

    Java 是一种可以撰写跨平台应用软件的面向对象的程序设计语言,是由 Sun Microsystems 公司于 1995 年 5 月推出的。Java 技术具有卓越的通用性、高效性、平台移植性和安全性。

    3187 引用 • 8213 回帖
  • Python

    Python 是一种面向对象、直译式电脑编程语言,具有近二十年的发展历史,成熟且稳定。它包含了一组完善而且容易理解的标准库,能够轻松完成很多常见的任务。它的语法简捷和清晰,尽量使用无异义的英语单词,与其它大多数程序设计语言使用大括号不一样,它使用缩进来定义语句块。

    541 引用 • 672 回帖
  • Selenium
    16 引用 • 13 回帖

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...

推荐标签 标签

  • IPFS

    IPFS(InterPlanetary File System,星际文件系统)是永久的、去中心化保存和共享文件的方法,这是一种内容可寻址、版本化、点对点超媒体的分布式协议。请浏览 IPFS 入门笔记了解更多细节。

    21 引用 • 245 回帖 • 247 关注
  • 导航

    各种网址链接、内容导航。

    39 引用 • 170 回帖
  • Markdown

    Markdown 是一种轻量级标记语言,用户可使用纯文本编辑器来排版文档,最终通过 Markdown 引擎将文档转换为所需格式(比如 HTML、PDF 等)。

    167 引用 • 1510 回帖
  • Tomcat

    Tomcat 最早是由 Sun Microsystems 开发的一个 Servlet 容器,在 1999 年被捐献给 ASF(Apache Software Foundation),隶属于 Jakarta 项目,现在已经独立为一个顶级项目。Tomcat 主要实现了 JavaEE 中的 Servlet、JSP 规范,同时也提供 HTTP 服务,是市场上非常流行的 Java Web 容器。

    162 引用 • 529 回帖 • 1 关注
  • 人工智能

    人工智能(Artificial Intelligence)是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门技术科学。

    132 引用 • 189 回帖
  • uTools

    uTools 是一个极简、插件化、跨平台的现代桌面软件。通过自由选配丰富的插件,打造你得心应手的工具集合。

    6 引用 • 14 回帖
  • SSL

    SSL(Secure Sockets Layer 安全套接层),及其继任者传输层安全(Transport Layer Security,TLS)是为网络通信提供安全及数据完整性的一种安全协议。TLS 与 SSL 在传输层对网络连接进行加密。

    70 引用 • 193 回帖 • 430 关注
  • 负能量

    上帝为你关上了一扇门,然后就去睡觉了....努力不一定能成功,但不努力一定很轻松 (° ー °〃)

    88 引用 • 1235 回帖 • 413 关注
  • ngrok

    ngrok 是一个反向代理,通过在公共的端点和本地运行的 Web 服务器之间建立一个安全的通道。

    7 引用 • 63 回帖 • 626 关注
  • 职场

    找到自己的位置,萌新烦恼少。

    127 引用 • 1705 回帖 • 1 关注
  • WebComponents

    Web Components 是 W3C 定义的标准,它给了前端开发者扩展浏览器标签的能力,可以方便地定制可复用组件,更好的进行模块化开发,解放了前端开发者的生产力。

    1 引用
  • Sym

    Sym 是一款用 Java 实现的现代化社区(论坛/BBS/社交网络/博客)系统平台。

    下一代的社区系统,为未来而构建

    524 引用 • 4601 回帖 • 701 关注
  • Vim

    Vim 是类 UNIX 系统文本编辑器 Vi 的加强版本,加入了更多特性来帮助编辑源代码。Vim 的部分增强功能包括文件比较(vimdiff)、语法高亮、全面的帮助系统、本地脚本(Vimscript)和便于选择的可视化模式。

    29 引用 • 66 回帖 • 2 关注
  • Flutter

    Flutter 是谷歌的移动 UI 框架,可以快速在 iOS 和 Android 上构建高质量的原生用户界面。 Flutter 可以与现有的代码一起工作,它正在被越来越多的开发者和组织使用,并且 Flutter 是完全免费、开源的。

    39 引用 • 92 回帖 • 1 关注
  • 区块链

    区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。所谓共识机制是区块链系统中实现不同节点之间建立信任、获取权益的数学算法 。

    91 引用 • 751 回帖 • 1 关注
  • CSS

    CSS(Cascading Style Sheet)“层叠样式表”是用于控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。

    197 引用 • 549 回帖
  • NetBeans

    NetBeans 是一个始于 1997 年的 Xelfi 计划,本身是捷克布拉格查理大学的数学及物理学院的学生计划。此计划延伸而成立了一家公司进而发展这个商用版本的 NetBeans IDE,直到 1999 年 Sun 买下此公司。Sun 于次年(2000 年)六月将 NetBeans IDE 开源,直到现在 NetBeans 的社群依然持续增长。

    78 引用 • 102 回帖 • 679 关注
  • Shell

    Shell 脚本与 Windows/Dos 下的批处理相似,也就是用各类命令预先放入到一个文件中,方便一次性执行的一个程序文件,主要是方便管理员进行设置或者管理用的。但是它比 Windows 下的批处理更强大,比用其他编程程序编辑的程序效率更高,因为它使用了 Linux/Unix 下的命令。

    122 引用 • 74 回帖
  • 知乎

    知乎是网络问答社区,连接各行各业的用户。用户分享着彼此的知识、经验和见解,为中文互联网源源不断地提供多种多样的信息。

    10 引用 • 66 回帖 • 2 关注
  • Eclipse

    Eclipse 是一个开放源代码的、基于 Java 的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。

    75 引用 • 258 回帖 • 617 关注
  • 分享

    有什么新发现就分享给大家吧!

    248 引用 • 1792 回帖 • 1 关注
  • Firefox

    Mozilla Firefox 中文俗称“火狐”(正式缩写为 Fx 或 fx,非正式缩写为 FF),是一个开源的网页浏览器,使用 Gecko 排版引擎,支持多种操作系统,如 Windows、OSX 及 Linux 等。

    8 引用 • 30 回帖 • 405 关注
  • 智能合约

    智能合约(Smart contract)是一种旨在以信息化方式传播、验证或执行合同的计算机协议。智能合约允许在没有第三方的情况下进行可信交易,这些交易可追踪且不可逆转。智能合约概念于 1994 年由 Nick Szabo 首次提出。

    1 引用 • 11 回帖 • 7 关注
  • 爬虫

    网络爬虫(Spider、Crawler),是一种按照一定的规则,自动地抓取万维网信息的程序。

    106 引用 • 275 回帖
  • WiFiDog

    WiFiDog 是一套开源的无线热点认证管理工具,主要功能包括:位置相关的内容递送;用户认证和授权;集中式网络监控。

    1 引用 • 7 回帖 • 587 关注
  • 音乐

    你听到信仰的声音了么?

    60 引用 • 511 回帖 • 1 关注
  • Vditor

    Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。它使用 TypeScript 实现,支持原生 JavaScript、Vue、React 和 Angular。

    351 引用 • 1811 回帖 • 2 关注