UIRecorder安装、录制、回放

news2024/11/15 15:50:10

Github地址:https://github.com/alibaba/uirecorder/blob/master/README_zh-cn.md

支持 android ios 和pc端的自动化脚本录制。无线native app(Android, iOS)录制是,是基于macaca实现的:https://macacajs.com

整体组成架构

在这里插入图片描述
UIRecorder录制功能基于macaca实现(包含:jwebdriver、selenium-standalone等),录制生成测试脚本 ——> mocha运行测试用例。mocha-parallel-tests可以并行执行用例插件,这里还会使用chai作为断言库 ——> 然后使用macaca-reporter生成对应的测试报告。
相关插件地址:
macaca:https://macacajs.com
Mocha和chai使用:https://blog.csdn.net/m0_60027772/article/details/125738692
macaca-reporter:https://github.com/macacajs/macaca-reporter
Macaca Reporter官网:https://macacajs.github.io/macaca-reporter/
selenium-standalone:https://github.com/webdriverio/selenium-standalone

UIRecorder安装(移动端要使用macaca服务,这里macaca依赖一并处理)

依赖添加

1、node环境:这里安装的时候和初始化的时候报错使用了两个版本,所以这里使用nvm来管理node环境,方便版本切换。参考安装https://blog.csdn.net/Charissa2017/article/details/104497572
2、JDK 1.8(其他版本也不太好使)
3、Android SDK:参考:https://blog.csdn.net/weixin_43665351/article/details/128780368
4、gradle:按依赖时有可能加载不上,使用brew install gradle安装。有可能还是失败,查看安装https://blog.csdn.net/weixin_43665351/article/details/128780936
5、安装 chrome :https://www.google.com/chrome/

安装UIRecorder
这里使用的node版本是v17.9.1

npm install uirecorder mocha -g

PC录制

1、初始化测试工程

创建新文件夹
uirecorder init # 这里使用node版本v14.20.0,缺的各种依赖一一补上,macaca-reporter安装不上,就全局安装-g

2、开始录制测试用例、启动WebDriver服务器

uirecorder sample/test.spec.js

在这里插入图片描述

3、运行测试用例

  • 运行所有脚本: source run.sh ( Linux|Mac ) 或 run.bat ( Windows )
  • 运行单个脚本: source run.sh sample/test.spec.js ( Linux|Mac ) 或 run.bat sample/test.spec.js ( Windows )
  • 获得测试报告和单步截图
./reports/index.html
./reports/index.xml (JUnit)
./reports/index.json
./截图/

移动端

1、安装并且启动macaca server:

安装Macaca:[https://macacajs.github.io/zh/guide/environment-setup.html#%E5%AE%89%E8%A3%85-node-js](https://macacajs.github.io/zh/guide/environment-setup.html#%E5%AE%89%E8%A3%85-node-js)
连接你的手机或模拟器:[https://macacajs.github.io/app-inspector/zh/guide/install.html#%E7%8E%AF%E5%A2%83%E9%9C%80%E8%A6%81](https://macacajs.github.io/app-inspector/zh/guide/install.html#%E7%8E%AF%E5%A2%83%E9%9C%80%E8%A6%81)
macaca server --port 4444

2、初始化测试工程

创建新文件夹
uirecorder init --mobile  # 这里使用node版本v14.20.0,缺的各种依赖一一补上,macaca-reporter安装不上,就全局安装-g

在这里插入图片描述

3、开始录制测试用例

uirecorder --mobile sample/test.spec.js

在这里插入图片描述
apk测试包下载:https://www.wandoujia.com/apps/32223

4、运行测试用例

  • 运行所有脚本: source run.sh ( Linux|Mac ) 或 run.bat ( Windows )
  • 运行单个脚本: source run.sh sample/test.spec.js ( Linux|Mac ) 或 run.bat sample/test.spec.js ( Windows )
  • 获得测试报告和单步截图
./reports/index.html
./reports/index.xml (JUnit)
./reports/index.json
./截图/

报错和处理记录:

sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % uirecorder --mobile sample/test.spec.js
    __  ______   ____                           __         
   / / / /  _/  / __ \___  _________  _________/ /__  _____
  / / / // /   / /_/ / _ \/ ___/ __ \/ ___/ __  / _ \/ ___/
 / /_/ // /   / _, _/  __/ /__/ /_/ / /  / /_/ /  __/ /    
 \____/___/  /_/ |_|\___/\___/\____/_/   \__,_/\___/_/    v3.5.3

Official Site: http://uirecorder.com
------------------------------------------------------------------

? 测试脚本文件名: sample/test.spec.js
? App路径 (扩展名: apk, app, zip): /Users/sunxinyang/Desktop/android/wandoujia.apk

录制服务器监听在端口: 63311
录制浏览器已开启
  tap: 同意 ( //*[@resource-id="com.wandoujia.phoenix2:id/mk"] )
   ✓ 执行成功
  tap: 暂不开启 ( //*[@resource-id="com.wandoujia.phoenix2:id/b8e"] )
   ✓ 执行成功
  tap: //*[@resource-id="com.wandoujia.phoenix2:id/awa"]
   ✓ 执行成功
------------------------------------------------------------------
共录制3个步骤 
录制脚本已保存: sample/test.spec.js

录制服务器已关闭
录制浏览器已关闭
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

"macaca-reporter" reporter not found
/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mocha@5.2.0@mocha/lib/mocha.js:193
      throw new Error('invalid reporter "' + reporter + '"');
      ^

Error: invalid reporter "macaca-reporter"
    at Mocha.reporter (/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mocha@5.2.0@mocha/lib/mocha.js:193:13)
    at Object.<anonymous> (/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mocha@5.2.0@mocha/bin/_mocha:368:7)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uirecorderTest@1.0.0 singletest: `mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 singletest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_17_21_461Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js --reporter macaca-reporter --reporter-options reportJSONFilename=customReportJSONFilename

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

"macaca-reporter" reporter not found
/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mocha@5.2.0@mocha/lib/mocha.js:193
      throw new Error('invalid reporter "' + reporter + '"');
      ^

Error: invalid reporter "macaca-reporter"
    at Mocha.reporter (/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mocha@5.2.0@mocha/lib/mocha.js:193:13)
    at Object.<anonymous> (/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mocha@5.2.0@mocha/bin/_mocha:368:7)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uirecorderTest@1.0.0 singletest: `mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 singletest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_18_44_248Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % npm i macaca-reporter --save
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN tar zlib: incorrect data check
npm WARN tar zlib: incorrect data check
npm WARN tarball cached data for sax@=0.4.2 (sha512-6Zsl4gnHjiTQfrOzsWdc0bHJepF5KJAVuM5fcyEJrqGyszkx2c55IclWP4D692rJrl1w0tExhbvYKjKNZl5wHg==) seems to be corrupted. Refreshing cache.
npm WARN tar zlib: incorrect data check
npm WARN tarball cached data for handlebars@^4.0.1 (sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==) seems to be corrupted. Refreshing cache.
npm WARN tar zlib: incorrect data check
npm WARN tarball tarball data for handlebars@^4.0.1 (sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==) seems to be corrupted. Trying one more time.
npm WARN uirecorderTest@1.0.0 No repository field.
npm WARN uirecorderTest@1.0.0 scripts['server'] should probably be scripts['start'].
npm WARN uirecorderTest@1.0.0 No license field.

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_form-data@2.1.4@form-data/node_modules/asynckit
npm ERR! dest /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_form-data@2.1.4@form-data/node_modules/asynckit
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_form-data@2.1.4@form-data/node_modules/asynckit' -> '/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_form-data@2.1.4@form-data/node_modules/asynckit'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_20_04_159Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % node -v                     
v14.20.0
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % npm i -g macaca-reporter 
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN tar zlib: incorrect data check
npm WARN tar zlib: incorrect data check
npm WARN tarball cached data for sax@=0.4.2 (sha512-6Zsl4gnHjiTQfrOzsWdc0bHJepF5KJAVuM5fcyEJrqGyszkx2c55IclWP4D692rJrl1w0tExhbvYKjKNZl5wHg==) seems to be corrupted. Refreshing cache.
npm WARN tar zlib: incorrect data check
npm WARN tarball cached data for handlebars@^4.0.1 (sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==) seems to be corrupted. Refreshing cache.
npm WARN tar zlib: incorrect data check
npm WARN tarball tarball data for handlebars@^4.0.1 (sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==) seems to be corrupted. Trying one more time.
/Users/sunxinyang/.nvm/versions/node/v14.20.0/bin/macaca-reporter -> /Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/macaca-reporter/bin/macaca-reporter.js
/Users/sunxinyang/.nvm/versions/node/v14.20.0/bin/macaca-reporter-merge -> /Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/macaca-reporter/bin/merge-reporter.js
+ macaca-reporter@1.9.11
added 15 packages from 4 contributors, removed 621 packages and updated 123 packages in 7.763s
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js 

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

(node:87027) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:87027) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency

Error: Cannot find module 'chai'
Require stack:
- /Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js:4:14)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async formattedImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
    at async Object.exports.requireOrImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
    at async Object.exports.loadFilesAsync (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
    at async singleRun (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async Object.exports.handler (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run.js:370:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uirecorderTest@1.0.0 singletest: `mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 singletest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_24_18_041Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % npm i chai                       
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_ansi-styles@3.2.1@ansi-styles/node_modules/color-convert
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_asn1@0.2.6@asn1/node_modules/safer-buffer
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_bcrypt-pbkdf@1.0.2@bcrypt-pbkdf/node_modules/tweetnacl
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_bl@4.1.0@bl/node_modules/inherits
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_boom@2.10.1@boom/node_modules/hoek
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_brace-expansion@1.1.11@brace-expansion/node_modules/balanced-match
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_brace-expansion@1.1.11@brace-expansion/node_modules/concat-map
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_chalk@1.1.3@chalk/node_modules/ansi-styles
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_chalk@1.1.3@chalk/node_modules/escape-string-regexp
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_chalk@1.1.3@chalk/node_modules/has-ansi
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_chalk@1.1.3@chalk/node_modules/strip-ansi
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_chalk@1.1.3@chalk/node_modules/supports-color
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_cliui@5.0.0@cliui/node_modules/wrap-ansi
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_combined-stream@1.0.8@combined-stream/node_modules/delayed-stream
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_cross-spawn@4.0.2@cross-spawn/node_modules/lru-cache
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_cross-spawn@4.0.2@cross-spawn/node_modules/which
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_dashdash@1.14.1@dashdash/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_debug@2.2.0@debug/node_modules/ms
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_debug@3.1.0@debug/node_modules/ms
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_debug@4.3.4@debug/node_modules/ms
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_ecc-jsbn@0.1.2@ecc-jsbn/node_modules/jsbn
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_ecc-jsbn@0.1.2@ecc-jsbn/node_modules/safer-buffer
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_end-of-stream@1.4.4@end-of-stream/node_modules/once
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_find-up@3.0.0@find-up/node_modules/locate-path
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_generate-function@2.3.1@generate-function/node_modules/is-property
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_generate-object-property@1.2.0@generate-object-property/node_modules/is-property
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_getpass@0.1.7@getpass/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_glob@5.0.15@glob/node_modules/inflight
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_glob@5.0.15@glob/node_modules/minimatch
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_glob@5.0.15@glob/node_modules/once
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_glob@5.0.15@glob/node_modules/path-is-absolute
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_glob@7.1.2@glob/node_modules/fs.realpath
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_gm@1.23.0@gm/node_modules/array-parallel
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_gm@1.23.0@gm/node_modules/array-series
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_har-validator@2.0.6@har-validator/node_modules/commander
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_har-validator@2.0.6@har-validator/node_modules/is-my-json-valid
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_har-validator@2.0.6@har-validator/node_modules/pinkie-promise
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_hawk@3.1.3@hawk/node_modules/hoek
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_hawk@3.1.3@hawk/node_modules/sntp
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_http-signature@1.1.1@http-signature/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_http-signature@1.1.1@http-signature/node_modules/jsprim
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_http-signature@1.1.1@http-signature/node_modules/sshpk
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_jszip@2.5.0@jszip/node_modules/pako
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mime-types@2.1.35@mime-types/node_modules/mime-db
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_mkdirp@0.5.1@mkdirp/node_modules/minimist
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_p-limit@2.3.0@p-limit/node_modules/p-try
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_string-width@3.1.0@string-width/node_modules/emoji-regex
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_string-width@3.1.0@string-width/node_modules/is-fullwidth-code-point
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_strip-ansi@5.2.0@strip-ansi/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/jquery
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/jwebdriver
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/macaca-mocha-parallel-tests
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/mocha
npm WARN checkPermissions Missing write access to /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/chai
npm WARN uirecorderTest@1.0.0 No repository field.
npm WARN uirecorderTest@1.0.0 scripts['server'] should probably be scripts['start'].
npm WARN uirecorderTest@1.0.0 No license field.

npm ERR! code ENOENT
npm ERR! syscall access
npm ERR! path /Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_ansi-styles@3.2.1@ansi-styles/node_modules/color-convert
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, access '/Users/sunxinyang/Desktop/uirecorder_mobile/node_modules/_ansi-styles@3.2.1@ansi-styles/node_modules/color-convert'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_24_39_243Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % npm i -g chai                    
+ chai@4.3.7
added 8 packages from 20 contributors in 0.79s
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

(node:87037) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:87037) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency

Error: Cannot find module 'chai'
Require stack:
- /Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js:4:14)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async formattedImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
    at async Object.exports.requireOrImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
    at async Object.exports.loadFilesAsync (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
    at async singleRun (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async Object.exports.handler (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run.js:370:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uirecorderTest@1.0.0 singletest: `mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 singletest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_25_01_855Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % cnpm i chai                      
✔ Installed 1 packages
✔ Linked 8 latest versions
✔ Run 0 scripts
✔ All packages installed (8 packages installed from npm registry, used 398ms(network 395ms), speed 0B/s, json 0(0B), tarball 0B, manifests cache hit 8, etag hit 8 / miss 0)
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

(node:87072) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:87072) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency

Error: Cannot find module 'jwebdriver'
Require stack:
- /Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js:6:20)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async formattedImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
    at async Object.exports.requireOrImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
    at async Object.exports.loadFilesAsync (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
    at async singleRun (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async Object.exports.handler (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run.js:370:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uirecorderTest@1.0.0 singletest: `mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 singletest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_25_50_683Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % cnpm i jwebdriver                
✔ Installed 1 packages
✔ Linked 78 latest versions
✔ Run 0 scripts
deprecate jwebdriver@2.3.6 › request@2.79.0 request has been deprecated, see https://github.com/request/request/issues/3142
deprecate jwebdriver@2.3.6 › request@2.79.0 › har-validator@~2.0.6 this library is no longer supported
deprecate jwebdriver@2.3.6 › request@2.79.0 › hawk@~3.1.3 This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
deprecate jwebdriver@2.3.6 › request@2.79.0 › uuid@^3.0.0 Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
deprecate jwebdriver@2.3.6 › request@2.79.0 › hawk@3.1.3 › cryptiles@2.x.x This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
deprecate jwebdriver@2.3.6 › request@2.79.0 › hawk@3.1.3 › sntp@1.x.x This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
deprecate jwebdriver@2.3.6 › request@2.79.0 › hawk@3.1.3 › boom@2.x.x This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
deprecate jwebdriver@2.3.6 › request@2.79.0 › hawk@3.1.3 › hoek@2.x.x This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
✔ All packages installed (81 packages installed from npm registry, used 992ms(network 966ms), speed 0B/s, json 0(0B), tarball 0B, manifests cache hit 78, etag hit 78 / miss 0)
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

(node:87099) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:87099) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency

Error: Cannot find module 'resemblejs-node'
Require stack:
- /Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/Users/sunxinyang/Desktop/uirecorder_mobile/sample/test.spec.js:8:18)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async formattedImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
    at async Object.exports.requireOrImport (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
    at async Object.exports.loadFilesAsync (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
    at async singleRun (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async Object.exports.handler (/Users/sunxinyang/.nvm/versions/node/v14.20.0/lib/node_modules/mocha/lib/cli/run.js:370:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uirecorderTest@1.0.0 singletest: `mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 singletest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_26_07_077Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % cnpm i resemblejs-node           
⠹ [0/1] Installing pngjs@3.2.0[jpeg-js@0.2.0] download Error: incorrect data check (jpeg-js@0.2.0) (/Users/sunxinyang/.npminstall_tarball/j/p/e/g/jpeg-js/0.2.0-53e448ec9d263e683266467e9442d2c5a2ef5482.tgz), fail count: 1[0/1] Installing pngjs@3.2.0[jpeg-js@0.2.0] format ungzip error, try to use tar format
✔ Installed 1 packages
✔ Linked 3 latest versions
✔ Run 0 scripts
✔ All packages installed (3 packages installed from npm registry, used 2s(network 2s), speed 1.86MB/s, json 0(0B), tarball 3.56MB, manifests cache hit 3, etag hit 3 / miss 0)
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

(node:87148) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:87148) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency


  0 passing (0ms)

>> html reporter generated: /Users/sunxinyang/Desktop/uirecorder_mobile/reports/index.html
>> json reporter generated: /Users/sunxinyang/Desktop/uirecorder_mobile/reports/index.json
>> reporter config generated: /Users/sunxinyang/Desktop/uirecorder_mobile/reports/config.json
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh                    

> uirecorderTest@1.0.0 paralleltest /Users/sunxinyang/Desktop/uirecorder_mobile
> macaca-mocha-parallel-tests "!(node_modules)/**/*.spec.js" --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --max-parallel 5 --bail

sh: macaca-mocha-parallel-tests: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! uirecorderTest@1.0.0 paralleltest: `macaca-mocha-parallel-tests "!(node_modules)/**/*.spec.js" --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --max-parallel 5 --bail`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the uirecorderTest@1.0.0 paralleltest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sunxinyang/.npm/_logs/2023-01-29T07_51_20_486Z-debug.log
sunxinyang@B-VD1SQ05P-2356 uirecorder_mobile % source run.sh sample/test.spec.js

> uirecorderTest@1.0.0 singletest /Users/sunxinyang/Desktop/uirecorder_mobile
> mocha --reporter macaca-reporter --reporter-options reportJSONFilename=index,processAlwaysExitWithZero=true --bail "sample/test.spec.js"

(node:87522) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:87522) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency


  0 passing (1ms)

>> html reporter generated: /Users/sunxinyang/Desktop/uirecorder_mobile/reports/index.html
>> json reporter generated: /Users/sunxinyang/Desktop/uirecorder_mobile/reports/index.json
>> reporter config generated: /Users/sunxinyang/Desktop/uirecorder_mobile/reports/config.json

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/185056.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Dubbo服务开发和运行流程【java面试】

(1)问题分析&#xff1a;考官主要想考核dubbo的原理&#xff0c;还有dubbo在项目中的使用。(2)核心答案讲解&#xff1a;dubbo服务开发流程&#xff1a;maven工程中pom文件先导入dubbo依赖jar包搭建zookeeper注册中心写好服务端工程并配置dubbo服务端配置&#xff0c;并关联上z…

Spring概览——最佳入门实践

1、Spring Framework Spring 基础框架&#xff0c;可以视为 Spring 基础设施&#xff0c;基本上任何其他 Spring 项目都是以 Spring Framework 为基础的。 1.1、Spring Framework特性 建议新手先看完的最佳实践&#xff0c;再回头看这一段。 非侵入式&#xff1a;使用 Spri…

Java List按照某字段去重

Java List按照某字段去重嘚吧嘚distinct示例一示例二根据某个字段去重Collectors.collectingAndThen()嘚吧嘚 Java8流的新类java.util.stream.Collectors实现了java.util.stream.Collector接口&#xff0c;同时又提供了大量的方法对流(stream)的元素执行各种统计操作。 distinc…

实战: 跨年烟花代码的实现(附源码)

目录 前言 一、pandas是什么&#xff1f; 二、代码结构 1.介绍主html代码 2. js文件介绍 GameCanvas.js script.js 运行效果 前言 本文章将介绍跨年烟花代码的实现以及源代码 提示&#xff1a;以下是本篇文章正文内容 一、pandas是什么&#xff1f; 示例&#xff1a;pandas …

css3-动画

目录语法转换平移旋转缩放复合属性的顺序问题过渡动画帧动画案例案例1-热点图dot(缩放)案例2-热点图dot(缩放)案例3-开红包(旋转)问题问题1-transform不起作用问题2 - 过渡动画不起效果语法 转换 css3中的转换允许我们对元素进行旋转、缩放、移动或倾斜。它分为2D转换 或 3D转…

开箱即用的物联网平台-IoTLink

物联网平台是物联网生态系统的重要组成部分&#xff0c;也是一个快速增长的市场&#xff0c;物联网平台为企业提供了巨大的价值&#xff0c;使他们能够降低开发成本、加速启动和简化流程。 一个完整的物联网系统需要硬件、连接、软件、用户界面等。在较高的层面上&#xff0c;…

menuconfig的执行过程

menuconfig &#xff08;1&#xff09;首先在uboot源码顶层目录下的Makefile文件中查找config&#xff08;%表示省略&#xff09; &#xff08;2&#xff09;执行make menuconfig&#xff0c;分别打印输出$(MAKE)、$(bulid)、$可知其对应的内容&#xff0c;如上图所示 总结&a…

用docker部署django后台作为webstack的后台管理系统-其二

0 序言 在之前的博客中&#xff1a; 用docker部署webstack导航网站-其一https://blog.csdn.net/qq_41938259/article/details/128736551?spm1001.2014.3001.5501我成功的将webstack官方推荐的docker容器部署了出来&#xff0c;但是官方的docker容器后端使用的是PHP&#xff0…

08_FreeRTOS列表和列表项讲解

目录 列表和列表项的简介 列表 列表项 迷你列表项 列表和列表项的关系 列表相关API函数介绍 初始化列表vListInitialise函数详解 列表项的初始化函数vListInitialiseItem函数 列表项的插入vListInsert函数 列表项末尾插入vListInsertEnd函数 列表项的删除函数uxLis…

零入门容器云网络实战-5->路由知识总结

本篇文章主要用于收集、整理、总结路由相关知识点。 1、路由分为几种&#xff1f; 直连路由静态路由&#xff08;基本静态路由&#xff0c;等价静态路由&#xff0c;活动静态路由&#xff0c;缺省静态路由&#xff09;动态路由 通过路由协议从相邻路由器学习到的。路由协议&am…

一,SpringMVC入门

0 MVC设计模式 View&#xff08;视图&#xff09;&#xff1a;页面&#xff08;jsp、html&#xff09;&#xff0c;接收用户数据和显示结果。 Controller&#xff08;控制器&#xff09;&#xff1a;action&#xff0c;接收请求&#xff0c;决定程序执行流程。 Model&#xf…

【深度学习】——循环神经网络RNN及实例气温预测

引言 密集连接网络和卷积神经网络都有主要的特点&#xff0c;那就是它们没有记忆。它们单独处理每个输入&#xff0c;在输入和输入之间没有保存任何状态。举个例子&#xff1a;当你在阅读一个句子的时候&#xff0c;你需要记住之前的内容&#xff0c;我们才能动态的了解这个句子…

三、SqlSession的创建以及执行流程

简介 SqlSession接口提供了查询&#xff0c;插入&#xff0c;更新&#xff0c;删除方法&#xff0c;Mybatis中所有的数据库交互都由SqlSession来完成。SqlSession 对象完全包含以数据库为背景的所有执行 SQL 操作的方法&#xff0c;它的底层封装了 JDBC 连接&#xff0c;可以用…

微服务链路追踪SkyWalking学习笔记

目录 1、skywalking是什么 1.2 链路追踪框架对比 1.3 性能对比 1.4 Skywalking主要功能特性 2、 SkyWalking 环境搭建部署 2.1 下载 SkyWalking 2.2 搭建SkyWalking OAP 服务 2.3 SkyWalking中三个概念 3、 SkyWalking 接入微服务 3.1 linux环境—通过jar包方式接入 …

SAP ADM100-2.5 系统启动:日志文件

本节将介绍SAP ABAP系统启动时最重要的log文件和Trce文件,以掌握通过使用系统启动log文件和trace文件分析系统问题。 1、记录系统启动过程 启动过程是一个特别重要的阶段,因此该过程将被操作系统、SAP系统、数据库记录。如果SAP系统没有启动,那么你将在log日志文件中发现相…

C#使用IronPython调用Python

一、前言以下摘自百度百科&#xff1a;IronPython 是一种在 NET 和 Mono 上实现的 Python 语言&#xff0c;由 Jim Hugunin&#xff08;同时也是 Jython 创造者&#xff09;所创造。1.0 版于2006年9月5日发布。随后&#xff0c;在 2007 年&#xff0c;开发者决定改写架构&#…

音视频xxxx

文章目录前言编解码硬件解码(高级)软解码(低级)软、硬解码对比视频解码有四个步骤Android 系统中编解码器的命名方式查看当前设备支持的硬解码基础知识RGB色彩空间常见的格式对比YUV索引格式分离RGB24像素数据中的R、G、B分量BMP 文件格式格式组成像素排列顺序RGB24格式像素数据…

Apache Solr 9.1-(三)集群模式下通过Http API操作Apache Solr

Apache Solr 9.1-&#xff08;三&#xff09;集群模式下通过Http API操作Apache Solr Solr是一个基于Apache Lucene的搜索服务器&#xff0c;Apache Lucene是开源的、基于Java的信息检索库&#xff0c;Solr能为用户提供无论在任何时候都可以根据用户的查询请求返回结果&#xf…

网络原理(TCP/IP)(3)

4)滑动窗口 1)咱们滑动窗口的效果就是说在我们尽可能地保证可靠性的情况下&#xff0c;尽可能的提高传输效率2)况且咱们进行发送滑动窗口的本质就是说进行批量的发送数据&#xff0c;咱们尽可能说是把等待ACK的时间总体进行缩短&#xff0c;咱们可以把等待一份ACK的时间变成等待…

凸优化学习:PART1凸集

凸优化学习PART1 一、引言&#xff1a;优化问题简介 优化问题的定义 凸优化是优化的一种&#xff0c;是优化中比较容易的问题。在讲解优化问题前&#xff0c;首先说明什么是优化/数学规划&#xff08;Optimization/Mathematical Planning&#xff09;。 优化&#xff1a;从一…