Metadata-Version: 2.1
Name: x-atp-cli
Version: 0.1.7
Summary: X automated test platform command line client
Home-page: https://github.com/hekaiyou/x-atp-cli
Author: HeKaiYou
Author-email: hekaiyou@gmail.com
License: UNKNOWN
Description: ## X ATP CLI Client
        
        X automated test platform command line client
        
        ## Sweetest of X ATP
        
        X Sweetest is a secondary development project for [Sweetest](https://github.com/tonglei100/sweetest) according to the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) agreement.
        
        Open a Cmd or Shell command window and go to the directory, for example: `D:\Autotest`, enter following command for a quick experience.
        
        ```shell
        x-atp-cli -d
        cd x_sweetest_example
        python echo.py
        ```
        
        If you have used [Sweetest](https://github.com/tonglei100/sweetest) before, just remove <del>`from sweetest import Autotest`</del> and add `from x_sweetest import Autotest` to switch to X Sweetest. for example:
        
        ```python
        # from sweetest import Autotest
        from x_sweetest import Autotest
        import sys
        ......
        ```
        
        ### v0.1.6 change
        
        Change content in `keywords/http.py` file to resolve issue that the `Output Data` field does not support `[{'id':1},{'id':2}]` format Json return value.
        
        ```python
                elif v == 'text':
                    g.var[k] = response['text']
                    logger.info('%s: %s' % (k, repr(g.var[k])))
                elif k == 'json':
                    sub_str = output.get('json', '{}')
                    if sub_str[0] == '[':
                        index = sub_str.split(']')[0][1:]
                        sub = json2dict(sub_str[len(index)+2:])
                        result = check(sub, response['json'][int(index)])
                    else:
                        sub = json2dict(output.get('json', '{}'))
                        result = check(sub, response['json'])
                    # logger.info('Compare json result: %s' % result)
                    var = dict(var, **result['var'])
                    g.var = dict(g.var, **result['var'])
                    logger.info('json var: %s' % (repr(result['var'])))
        ```
Keywords: x,atp,test,platform
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
