How to write test results to an existing Excel table in Python (ii)

Source: Internet
Author: User

Today Friday, oh, the most happy every month is the Friday and pay the day, hehe. I wish you a happy weekend here in advance.

Last time I shared how to implement single interface automation with the Python+excel table, today and we say, how to automatically write test results to the original Excel table.

Because I used to have a database +python do automation, divided into two tables one is Test_data, one is Test_report, after the column and test results to write directly to a table, so chose to use Excel+python. Here is the part of the Code implementation

This time with our WAP terminal login function module, python+selenium+excle, with GCA, we need to write the results of our code judgments automatically into the "Final_reslut" field, if and Expected_reslut Consistency means success.

Next is the Code implementation section

After running, you get the result:

Can you see that the Final_result field already has content, so that we can not achieve the desired effect? If you have any questions about the code of my login module, I will update my login module code next time so that you will understand it more easily.

We can encapsulate it as a common module and combine it with other column modules for this write to an existing Excel table. Next time I will continue to update, it is here today oh.

More information or software downloads can follow my blog or join the following groups, qq:511213522/461085465

We exchange software tests together and progress together.

How to write test results to an existing Excel table in Python (ii)

Related Article

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.