Interface testing-automated-java implementation-constants.java/recordstore.java

Source: Internet
Author: User

Constants.java are URLs and parameters in some interface tests.

 Public classConstants { Public Static FinalString base_url = "http://192.168.1.116:8080/cloudalbums/website/"; /*** Login Module*/    //Login Interface     Public Static FinalString Login_url = base_url + "User/login1";  Public Static FinalString login_content = "{' Registractionid ': ' XXXXXXXX ', ' mobile ': ' xxxxxxxxx ', ' Password ': ' XXXXXXXX ', ' apptype ': ' 1 ' }";}

Recordstore.java is a record of some information, because after not executing a test, the record is changed and then written to HTML, so the file will only save the last record. Of course, the total will increase one by one.

 Public classRecordStore { Public Static inti = 0;//record number of steps     Public Static intP_pass = 0;//number of pass cases     Public Static intP_fail = 0;//number of fail use cases     Public StaticString result = "";//Case Results     Public StaticObject expected = "";//Expected value     Public StaticObject actual = "";//Actual value     Public StaticString instruction = "";//Case Description}

Interface testing-automated-java implementation-constants.java/recordstore.java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.