Zinc30 is a powerful Android UI automated testing framework that supports the establishment of robust and maintainable black box testing cases. RD or QA can design function-level and system-level tests based on scenarios. Zinc30 complies with the Webdriver API specification and operates Android controls in a better way to program objects on the ground. It also fu
To write a test framework, more and more functions are added. To sum up:
1. test framework, so that the test case can be restarted.
2. Data separation. Use the configuration file and command line parameter settings to modify the configuration at least statically: Specify the running parameters, data files, and so on.
3. The testing
n = ProductManage.Instance.Delete (b = = b.ID = = data. ID); return n; } public int Update (int index) {var data = getproduct (index) as Product; Because it is not queried, manually set which properties have been changed by data. Change (b = b.productname); Data. Change (b = b.barcode); return ProductManage.Instance.Update (data); } } test Procedure , call the interface implementation, to delete and change the loop to execute the specifi
database. */public listThe introduction of the test framework, create a new test package, under which a new class Testdbcase inherits from: Androidtestcase. What to introduce in Androidmnifest.xml:Targetpackage the package name for itself.First Test whether the database can be created.public class Testdbcase extends Androidtestcase {/** * database name */public static final String db_name = "Cool_weather";/** * Data Library version */public static fi
the name of the test instance, the two instances belong to the same factorialtest test case. You can set the name of the test instance at will, but the naming method that can reflect the test function is better.
Compile and execute the test codeProgramThe execution result is as follows:
Running main () from gtest_main.cc[=========] Running 2 Tests from 1 Test Case .[----------] Global test environment Set -Up.[----------] 2 Tests from factorialtest[Run] factorialtest. handleszeroinput[OK] fa
When writing this automated testing framework, I have been paying attention to various needs. After all, I have not performed real automated tests. Manage the test leaders and propose a requirement that the process should be recorded when the test case fails to run, and a report should be generated and sent to relevant personnel by Email.
I personally think this requirement is very reasonable. In fact, if n
There has been an idea for a long time to build an integrated automated testing framework for our product development. The goals are as follows:
Automatically capture code from the code library
Automatic Build, installation package creation, and collection of DEBUG symbols
Automatic release
Automatically installed to the target device
Automatically run test cases and store test results
Test Cases and
This is a created
article in which the information may have evolved or changed.
For beginners of our go language, we like to learn to write small code while learning. After each write, we all want to see the results of the program, although the Go run tool is often easy to run and can see the results directly, but is it annoying to repeat this command every time?
Fortunately the Beego Framework provides a bee tool that would have been used for the
the meaning of this section of the author's code in java.py:is to detect that there is no "Oracle" field in the output of the detection terminal after running the Java executable, thus determining if Java is installed.That being the case, we have two choices:1. Modify the source code2. Modify the Java installation addressObviously, it is more convenient to modify the source code:Modify java.py 43rd behavior:MAC_LINUX_JAVA="/usr/bin/jdk1.8.0_91/bin/"Run manage.py again:Ok.Open Web site 127.0.0.1
LoadRunner test The AJAX framework of the system, recording playback is not an error, but after playback the system does not produce data, data is never written to the database. Check the reason, should be the recording of the script is imperfect, because JS is a program executed on the client, LR can only monitor the client and the server before the communication. Workaround: Recording options> HTTP properites> Advanced > Headers: Select 'Record Head
Refer to http://controlingquality.blogspot.com/2011/02/design-data-driven-framework-around.html
TestedCodeIs a simple calculator, code:/files/morebetter/Android code/androidcalculator.rar
1. Data-Driven Testing Architecture
Test Data source: testdata.csv
First Value
Second Value
10
1.5
20
3
The first input box reads dat
After the test of a large-scale project, the perfectly mature framework system has been updated and released again
http://www.stu80.com/gonggao/new.php
This release cannot be achieved without having to spend time on complex project testing.
Which also has the credit of the moderator.
The collection of wisdom in this framework embodies the.
Welcome to
involved in writing interface tests. There is also a brief introduction, UnitTest Unit Test framework and request library.Import Unittestimport requestsclass pollstest (unittest. TestCase): def setUp (self): self.base_url = ' http://127.0.0.1:8000/polls ' def tearDown (self): Pass def test_get_poll_index (self): "Test Polling system home Page" ' r = Requests.get (self.base_url) code = R.status_code
elements not in the original collection, return False, the elements of the collection are not changed, No effect on the original set) //booleancontains (Objecto): Determines whether the collection contains the specified element // System.out.println ("contains:" +c.contains("Hello")); //system.out.println ("contains:" +c.contains ("Android"));//boolean IsEmpty (): Determines whether the collection is empty //system.out.println ("IsEmpty:" +c.isempty ()); //intsize () : The number of elements sy
.
Swipe
Analog phone slide, swipe from one point to another, the keyword receives 5 parameters [start_x | start_y | end_x | end_y | duration=1000], when sliding, the position of the point is in the form of coordinates.
Tap
This keyword simulates clicking on a screen element and receiving a parameter [locator]
Zoom
This keyword is used to magnify an element and receive three parameters [Locator | percent=200% | steps=1], the first parameter
Reprint please indicate the source, thank you;Chrome Browser:1. Download the Chromedriver.exe driver file consistent with the local browser version number from the following address;Http://chromedriver.storage.googleapis.com/index.html2. Place the drive file under the Python root path, e.g. D:\Python27;IE Browser:1, from the following address download and local selenium version number and operating system consistent iedriver;Http://selenium-release.storage.googleapis.com/index.html2. Place the d
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.