CN105718251B - Multilingual SDK automates realization method and system - Google Patents

Multilingual SDK automates realization method and system Download PDF

Info

Publication number
CN105718251B
CN105718251B CN201410725665.9A CN201410725665A CN105718251B CN 105718251 B CN105718251 B CN 105718251B CN 201410725665 A CN201410725665 A CN 201410725665A CN 105718251 B CN105718251 B CN 105718251B
Authority
CN
China
Prior art keywords
sdk
multilingual
source code
newly
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410725665.9A
Other languages
Chinese (zh)
Other versions
CN105718251A (en
Inventor
李伟
李想
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suningcom Group Co Ltd
Original Assignee
Suningcom Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suningcom Group Co Ltd filed Critical Suningcom Group Co Ltd
Priority to CN201410725665.9A priority Critical patent/CN105718251B/en
Publication of CN105718251A publication Critical patent/CN105718251A/en
Application granted granted Critical
Publication of CN105718251B publication Critical patent/CN105718251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of multilingual SDK automation realization method and system, belongs to technical field of electronic commerce.The method comprising the steps of: API service end generates API message according to business demand;API client receives API message, downloads SDK source code from code library, the SDK interface needed for being generated according to the configuration of API message content, and generates multilingual newly-increased SDK source code and corresponding language testing script;By compiling and testing, newly-increased SDK source code upload code library is packaged.Multilingual automation may be implemented in technical solution of the present invention, simplifies SDK management link, improves development efficiency and saves development cost.

Description

Multilingual SDK automates realization method and system
Technical field
The present invention relates to technical field of electronic commerce, in particular to a kind of multilingual SDK automates realization method and system.
Background technique
In e-commerce field, user data is obtained and analysis is extremely crucial for commercial product recommending and precision marketing. For third-party platform trade company in e-commerce website, the number of users of trade company need to be obtained from e-commerce website operator it is believed that Breath.User data needed for e-commerce website operator provides trade company gives third-party platform trade company, and website operator is opened up It is quite important to open up third-party platform trade company.Application programming interface (Application Programming Interface, Abbreviation API) it is some functions predetermined, it is therefore an objective to application program is provided and is able to developer based on certain software or hardware The ability of one group of routine is accessed, and is not necessarily to access source code, or understand the details of internal work mechanism.Software Development Kit (Software Development Kit, abbreviation SDK) can carry out packing processing to user data and be supplied to third-party platform quotient Family downloading.Conventional SDK exploitation need by different development language developer exploitation, code tester, code compilation, packing, Multiple links such as source code submission, version management, and participant is more, coding style disunity, causes error rate high, version Confusion, inefficiency.
Summary of the invention
In view of the above drawbacks of the prior art, the technical problem to be solved by the present invention is to how realize multilingual SDK certainly Dynamicization simplifies SDK management link, improves development efficiency and saves development cost.
To achieve the above object, on the one hand, the present invention provides a kind of multilingual SDK automation implementation method, this method packet Include following steps:
Step S1, API service end generates API message according to business demand;
Step S2, API client receives API message, downloads SDK source code from code library, is configured and generated according to API message Required SDK interface, and generate multilingual newly-increased SDK source code and corresponding language testing script;
Step S3, by compiling and test, newly-increased SDK source code is uploaded to code library, is packaged.
Preferably, the business demand specifically includes:
The user's purchase order information and/or user data information of e-commerce website.
Preferably, the method also includes the processing steps of abnormal conditions:
There are abnormal conditions during compiling, by being uploaded to code library after modification by hand, and re-executes.
Preferably, the step S2 is specifically included:
According to API message, configuration needs the SDK interface generated;
Corresponding with the SDK interface multilingual newly-increased SDK source code is generated, by the SDK source code of downloading and multilingual Newly-increased SDK source code is merged into code library;
It generates different language unit testing, compiling and is packaged script.
Preferably, the step S3 is specifically included:
SDK source code is compiled, and returns to compiling result;
The code library of multilingual calling respectively executes linguistic unit test script, returns to test result;
Multilingual newly-increased SDK source code is uploaded to code library;
Multiple language are called to be packaged order respectively, to the SDK source code and multilingual newly-increased SDK source code or volume after merging SDK source code after translating executes packing;
Packing is merged with multilingual newly-increased SDK source code to the SDK source code downloaded from code library.
On the other hand, the present invention goes back while providing a kind of multilingual SDK automation realization system, comprising: API service end, API client and code library;
The API service end, for generating API message according to business demand;
The API client, for downloading SDK source code from code library, needed for the configuration of API message generates based on the received SDK interface, generate that multilingual SDK increases source code newly and corresponding language testing script is compiled and tests
The code library is packaged for receiving the newly-increased SDK source code of API client upload.
Preferably, the business demand specifically includes:
The user's purchase order information and/or user data information of e-commerce website.
Preferably, the system also includes the processing steps of abnormal conditions:
There are abnormal conditions during compiling, by being uploaded to code library after modification by hand, and re-executes.
Preferably, the client is specifically used for,
According to API message, configuration needs the SDK interface generated;
Corresponding with the SDK interface multilingual newly-increased SDK source code is generated, by the SDK source code of downloading and multilingual Newly-increased SDK source code is merged into code library;
It generates different language unit testing, compiling and is packaged script.
In technical solution provided by the invention, API message that API service end is generated according to business demand;API client's termination API message is received, downloads SDK source code from code library, according to the SDK interface that the configuration of API message content needs to generate, is generated multi-lingual Say that SDK increases source code, and corresponding language testing script newly;By compiling and testing, newly-increased SDK source code is uploaded to code Library carries out packing downloading, to realize multilingual SDK automation, simplifies SDK management link, improves development efficiency and saving is opened Send out cost.
Detailed description of the invention
Fig. 1 is the flow diagram of the multilingual SDK automatic method in one embodiment of the present of invention;
Fig. 2 is the flow diagram of the multilingual SDK automatic method in another embodiment of the invention;
Fig. 3 is the structural schematic diagram of the multilingual SDK automated system in another embodiment of the invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, with reference to the accompanying drawing and specific embodiment party Present invention is further described in detail for formula.
Multilingual SDK Software Development Kit, that is, automation tools are that a variety of development language SDK are realized by software program Code building, edition upgrading is automatic to compile, and tests, and is packaged, and code synchronisation function is managed by unified interface.In tool It is applied to xml parsing, the technologies such as template static, compiling, packing, flow management, data synchronize, simplifies conventional SDK management Multiple intermediate links.The present invention according to application programming interface (Application Programming Interface, Abbreviation API) message (message from third-party platform trade company demand) easy configuration, clicking several operation buttons can be very The thing of above-mentioned links is completed in the short time, efficiency greatly improves, and saves development cost.Technical solution of the present invention branch More kinds of development language SDK exploitations of Java/.net/php/python are held, execution efficiency is high, and convenient for safeguarding, style is consistent, specification system One, human cost is saved, can extend and support more development languages.
Fig. 1 is the flow diagram of the multilingual SDK automatic method in one embodiment of the present of invention, as shown in Figure 1, This method comprises the following steps:
Step S11, API service end generates API message according to business demand;
Step S12, API client receives API message, downloads SDK source code from code library, is configured and given birth to according to API message At required SDK interface, and generate multilingual newly-increased SDK source code and corresponding language testing script;
Step S13, by compiling and test, newly-increased SDK source code is uploaded to code library, is packaged.
Preferably, business demand includes but is not limited to: the user's purchase order information and/or number of users of e-commerce website It is believed that breath.
Preferably, this method further includes the processing step of abnormal conditions:
There are abnormal conditions during compiling, by being uploaded to code library after modification by hand, and re-executes.
Preferably, step S12 is specifically included: according to API message, configuration needs the SDK interface generated, and starting generates journey Sequence;Corresponding with the SDK interface multilingual newly-increased SDK source code is generated, by the SDK source code of downloading and multilingual is increased newly SDK source code is merged into code library;It generates different language unit testing, compiling and is packaged script.
Preferably, step S13 is specifically included: compiling SDK source code, and returns to compiling result it is not necessary to compile then directly Pass through;Multilingual calling code library respectively executes linguistic unit test script, returns to test result;By the multilingual newly-increased source SDK Code is uploaded to code library;Multiple language are called to be packaged order respectively, to the SDK source code and multilingual newly-increased SDK after merging SDK source code after source code or compiling executes packing;To the SDK source code and the multilingual newly-increased source SDK downloaded from code library Code, which merges, to be packaged.
Fig. 2 is the flow diagram of the multilingual SDK automatic method in another embodiment of the invention, such as Fig. 2 institute Show, multilingual SDK automation tools are as follows by WEB interface one-key operation or point six steps, operating process:
Step S21, the server where downloading newest SDK code to automation Core Generator from svn (code library), is used for Merge increment SDK source code, is compiled, tests and is packaged;
Step S22, the interface for needing to generate SDK according to the configuration of API message clicks starting and generates program.Specifically, it generates The multilingual SDK business source code of configured interface is merged into the source code corresponding position of svn downloading;Generate corresponding language Unit testing, is packaged script at compiling.The sdk business source code of generation is the fresh code that software tool generates.Wherein, according to The API message that business demand generates, business demand includes but is not limited to: user's purchase order information of e-commerce website, or User data information etc..
Step S23, compiling source code (java .net) returns to compiling result it is not necessary to compile, and directly passes through;
Step S24, each environment class libraries is called respectively, and execution unit test script returns to test result;
Step S25, increment uploads SDK code to SVN;
Step S26, multiple language are called to be packaged order respectively, to the sdk source code after merging or the code packet after compiling Java is included, the language of the needs such as .net compiling executes packing;Program after merging to the source code downloaded from svn with increment sdk Full dose is packaged.
Step S27, modification is intervened by hand for abnormal conditions compiling failure.
Wherein, abnormal process includes being positioned according to error information.
Step S28, it submits modification SDK code to SVN, repeats step S21-S26.
Relevant technical staff in the field will be understood that corresponding with method of the invention, and the present invention is also simultaneously including one The multilingual SDK of kind automates realization system, as shown in Fig. 2, the system includes: API service end 301, API client 302 and generation Code library 303.Wherein, the API message that API service end 301 is generated according to business demand;API client 302 receives API message, from Code library 303 downloads SDK source code, and according to the SDK interface that the configuration of API message content needs to generate, it is newly-increased to generate multilingual SDK Source code, and corresponding language testing script;By compiling and testing, newly-increased SDK source code upload code library 303 carries out It is packaged downloading.
Preferably, business demand specifically includes: the user's purchase order information and/or number of users of e-commerce website it is believed that Breath.
Preferably, which further includes the processing step of abnormal conditions: abnormal conditions occurs during compiling, passes through It is uploaded to code library after modification by hand, and is re-executed.
Preferably, client is specifically used for, and according to API message, configuration needs the SDK interface generated;It generates and the SDK The corresponding multilingual newly-increased SDK source code of interface, is merged into generation for the SDK source code of downloading and multilingual newly-increased SDK source code In code library;It generates different language unit testing, compiling and is packaged script.
In technical solution provided by the invention, API message that API service end is generated according to business demand;API client's termination API message is received, downloads SDK source code from code library, according to the SDK interface that the configuration of API message content needs to generate, is generated multi-lingual Say that SDK increases source code, and corresponding language testing script newly;By compiling and testing, newly-increased SDK source code is uploaded to code Library carries out packing downloading, to realize multilingual SDK automation, simplifies SDK management link, improves development efficiency and saving is opened Send out cost.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (9)

1. a kind of multilingual SDK automates implementation method, which is characterized in that described method includes following steps:
Step S1, API service end generates API message according to business demand;
Step S2, API client receives API message, downloads SDK source code from code library, needed for being generated according to the configuration of API message SDK interface, and generate multilingual newly-increased SDK source code and corresponding language testing script;
Step S3, by compiling and test, newly-increased SDK source code is uploaded to code library, is packaged.
2. multilingual SDK according to claim 1 automates implementation method, which is characterized in that the business demand is specific Include:
The user's purchase order information and/or user data information of e-commerce website.
3. multilingual SDK according to claim 2 automates implementation method, which is characterized in that the method also includes different The processing step of reason condition:
There are abnormal conditions during compiling, by being uploaded to code library after modification by hand, and re-executes.
4. multilingual SDK according to claim 3 automates implementation method, which is characterized in that the step S2 is specifically wrapped It includes:
According to API message, configuration needs the SDK interface generated;
Corresponding with the SDK interface multilingual newly-increased SDK source code is generated, by the SDK source code of downloading and multilingual is increased newly SDK source code is merged into code library;
It generates different language unit testing, compiling and is packaged script.
5. multilingual SDK according to claim 4 automates implementation method, which is characterized in that the step S3 is specifically wrapped It includes:
SDK source code is compiled, and returns to compiling result;
The code library of multilingual calling respectively executes linguistic unit test script, returns to test result;
Multilingual newly-increased SDK source code is uploaded to code library;
Multiple language are called to be packaged order respectively, to the SDK source code and multilingual newly-increased SDK source code after merging or after compiling SDK source code execute packing;
Packing is merged with multilingual newly-increased SDK source code to the SDK source code downloaded from code library.
6. a kind of multilingual SDK automates realization system characterized by comprising API service end, API client and code Library;
The API service end, for generating API message according to business demand;
The API client, for downloading SDK source code from code library, needed for the configuration of API message generates based on the received SDK interface, generates the newly-increased source code of multilingual SDK and corresponding language testing script is compiled and tests
The code library is packaged for receiving the newly-increased SDK source code of API client upload.
7. multilingual SDK according to claim 6 automates realization system, which is characterized in that the business demand is specific Include:
The user's purchase order information and/or user data information of e-commerce website.
8. multilingual SDK according to claim 7 automates realization system, which is characterized in that the system also includes different The processing step of reason condition:
There are abnormal conditions during compiling, by being uploaded to code library after modification by hand, and re-executes.
9. multilingual SDK according to claim 8 automates realization system, which is characterized in that the client is specifically used In,
According to API message, configuration needs the SDK interface generated;
Corresponding with the SDK interface multilingual newly-increased SDK source code is generated, by the SDK source code of downloading and multilingual is increased newly SDK source code is merged into code library;
It generates different language unit testing, compiling and is packaged script.
CN201410725665.9A 2014-12-03 2014-12-03 Multilingual SDK automates realization method and system Active CN105718251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410725665.9A CN105718251B (en) 2014-12-03 2014-12-03 Multilingual SDK automates realization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410725665.9A CN105718251B (en) 2014-12-03 2014-12-03 Multilingual SDK automates realization method and system

Publications (2)

Publication Number Publication Date
CN105718251A CN105718251A (en) 2016-06-29
CN105718251B true CN105718251B (en) 2019-02-01

Family

ID=56142857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410725665.9A Active CN105718251B (en) 2014-12-03 2014-12-03 Multilingual SDK automates realization method and system

Country Status (1)

Country Link
CN (1) CN105718251B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070964B (en) * 2016-12-08 2020-03-13 上海找钢网信息科技股份有限公司 Remote communication packaging method and system based on heterogeneous environment
CN106775720B (en) * 2016-12-16 2020-08-07 北京小度互娱科技有限公司 Method and device for integrating player SDK (software development kit) and method and device for setting player SDK
CN107391130B (en) * 2017-07-07 2020-05-05 千寻位置网络有限公司 API automatic management and SDK, document automatic generation method
CN110018951B (en) * 2018-01-10 2022-12-27 武汉斗鱼网络科技有限公司 JS code testing method, storage medium, equipment and system
CN108647033B (en) * 2018-04-03 2021-06-29 四川新网银行股份有限公司 SDK automatic packaging method for open platform
CN108920133B (en) * 2018-06-14 2021-06-18 北京三快在线科技有限公司 Cross-language programming method and device, electronic equipment and storage medium
CN110008131B (en) * 2019-04-12 2020-08-04 重庆天蓬网络有限公司 Method and device for managing area AB experiment based on algorithm
CN111625250B (en) * 2020-04-22 2023-11-10 Oppo(重庆)智能科技有限公司 Application updating method and device, storage medium and electronic equipment
US11455237B2 (en) 2020-06-01 2022-09-27 Agora Lab, Inc. Highly scalable system and method for automated SDK testing
CN111651156A (en) * 2020-06-04 2020-09-11 广州鲁邦通物联网科技有限公司 Software development kit adaptive to multiple development languages and calling method
CN111651366B (en) * 2020-07-06 2023-08-08 Oppo广东移动通信有限公司 SDK test method, device, equipment and storage medium
CN112947986B (en) * 2020-09-29 2024-05-24 深圳市明源云科技有限公司 Multi-version code sign-on control method, device, client and storage medium
CN112380145A (en) * 2021-01-15 2021-02-19 树根互联技术有限公司 SDK generation method, device, equipment and readable storage medium
CN113515263B (en) * 2021-04-26 2022-06-17 中国汽车技术研究中心有限公司 Industrial APP mechanism model deployment method, device, equipment and readable storage medium
CN113391827B (en) * 2021-08-17 2021-11-02 湖南省佳策测评信息技术服务有限公司 Application software publishing method and system based on automation script
CN113923107B (en) * 2021-10-14 2024-02-23 海南车智易通信息技术有限公司 Method, device, equipment and medium for automatically switching multiple channels of instant messaging
CN116010285A (en) * 2023-02-27 2023-04-25 北京安盟信息技术股份有限公司 SDK automatic test method, system, medium and equipment for cloud password service product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983209A (en) * 2005-12-14 2007-06-20 中兴通讯股份有限公司 System and method for automatically testing software unit
CN103500139A (en) * 2013-09-25 2014-01-08 刘爱琴 Communication software integration testing system and method
US20140109057A1 (en) * 2012-10-12 2014-04-17 Vmware, Inc. Software development kit testing
US20140239065A1 (en) * 2011-07-18 2014-08-28 Tiger T G Zhou Wearable personal digital device with changeable bendable battery and expandable display used as standalone electronic payment card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983209A (en) * 2005-12-14 2007-06-20 中兴通讯股份有限公司 System and method for automatically testing software unit
US20140239065A1 (en) * 2011-07-18 2014-08-28 Tiger T G Zhou Wearable personal digital device with changeable bendable battery and expandable display used as standalone electronic payment card
US20140109057A1 (en) * 2012-10-12 2014-04-17 Vmware, Inc. Software development kit testing
CN103500139A (en) * 2013-09-25 2014-01-08 刘爱琴 Communication software integration testing system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XML API-based Test Framework of Extension Interface Using Software Mutation Analysis for Component;XIA Qiming er al;《 E-Business and Information System Security, 2009. EBISS "09.》;20090524;第2009年卷;全文 *
基于XML的SDK自动化测试框架的设计与实现;郝晓晓等;《计算机技术与发展》;20100430;第20卷(第4期);第101-104页 *

Also Published As

Publication number Publication date
CN105718251A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN105718251B (en) Multilingual SDK automates realization method and system
US11422778B2 (en) Development environment for real-time dataflow programming language
US11151018B2 (en) Method and apparatus for testing a code file
CN107895286B (en) Claim amount determining method and device, storage medium and electronic equipment
CN106909510A (en) A kind of method and server for obtaining test case
US9223570B2 (en) Migration assistance using compiler metadata
CN109564540A (en) Debugging tool for JIT compiler
US10083029B2 (en) Detect application defects by correlating contracts in application dependencies
Krüger et al. Composing annotations without regret? Practical experiences using FeatureC
CN104199713A (en) Embedded Linux operation system trimming customization method
Williams et al. Guided feature identification and removal for resource-constrained firmware
CN103176903B (en) The test method and equipment of MapReduce distributed system program
US10606569B2 (en) Declarative configuration elements
Agarwal et al. Copilot Evaluation Harness: Evaluating LLM-Guided Software Programming
Ruprecht et al. Automatic feature selection in large-scale system-software product lines
CN110399187A (en) A kind for the treatment of method and apparatus of language resource
Liu et al. Efficient testing based on logical architecture
Stehle et al. A porting method for coordinated multiplatform evolution
Samson et al. Automatic generation of test oracles from component based software architectures
Kalache et al. A testing framework for JADE agent-based software
Neubauer Towards Model-Driven Software Language Modernization.
Starkman The Robot Operating System in Transition: Experiments and Tutorials
Young Code Generation: An Introduction to Typed EBNF
Espitia Acero Empirical testing for establishing benchmarks: process review and comparison between java, kotlin and dart's performance
Wiedijk Code Instrumentation with Mod-BEAM

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 210000, 1-5 story, Jinshan building, 8 Shanxi Road, Nanjing, Jiangsu.

Applicant after: SUNING.COM Co.,Ltd.

Address before: 210042 15, 1 Suning Road, Xuanwu District, Nanjing, Jiangsu.

Applicant before: SUNING COMMERCE GROUP Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Multi language SDK automation implementation method and system

Effective date of registration: 20221228

Granted publication date: 20190201

Pledgee: Bank of China Limited Nanjing Gulou Branch

Pledgor: SUNING.COM Co.,Ltd.

Registration number: Y2022980029360

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230110

Granted publication date: 20190201

Pledgee: Bank of China Limited Nanjing Gulou Branch

Pledgor: SUNING.COM Co.,Ltd.

Registration number: Y2022980029360

PC01 Cancellation of the registration of the contract for pledge of patent right