Windows Script Host Error - Running Appium from CMD - javascript

I'm trying to run Appium from command line but getting error 800A138F - Microsoft JScript runtime error.
I have created a BATCH file containing the following data.
ECHO
START "C:\Program Files (x86)\Appium\node.exe" "C:\Program Files (x86)\Appium\node_modules\appium\lib\server\main.js" --address 127.0.0.1 --port 4723 --platform-name Android --platform-version 23 --automation-name Appium --log-no-color
Then, the windows script host pop up error appears.

Related

Unable to launch Nativescript App in iOS simulator

when I run tns run ios, i get the following error:
Unable to apply changes on device: E152B60E-D109-4BF3-A03A-F1DC42AB9252. Error is: Command xcrun with arguments simctl install E152B60E-D109-4BF3-A03A-F1DC42AB9252 /Applications/nativeOne/HelloApp/platforms/ios/build/Debug-iphonesimulator/HelloApp.app failed with exit code 1. Error output:
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/dim/Library/Developer/CoreSimulator/Devices/E152B60E-D109-4BF3-A03A-F1DC42AB9252/data/Bundle/Application/51605A25-4EC5-4D66-9E5D-4EFE1F9632AF/HelloApp.app/HelloApp : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/dim/Library/Developer/CoreSimulator/Devices/E152B60E-D109-4BF3-A03A-F1DC42AB9252/data/Bundle/Application/51605A25-4EC5-4D66-9E5D-4EFE1F9632AF/HelloApp.app/HelloApp : No such file or directory
I've tried everthing possible, re-installed node.
flushed my cache...
the simulator works fine with flutter apps.
Nativescript CLI works fine with Android emulator. The only prob;em is getting it gto work on ios one.
Please help

Errors when running Protractor tests - Java Issues?

I'm running E2E tests using Protractor/Jasmine. Using VS Code to author.
I had no issue when running these tests/frameworks when running on Win7 but since "upgrading" to Win10, I'm getting errors:
PS E:\Projects\DBM_TAGS> protractor dbm-tags.js
[12:01:31] I/launcher - Running 1 instances of WebDriver
[12:01:31] I/local - Starting selenium standalone server...
[12:01:31] W/launcher - Ignoring uncaught error Error: spawn C:\Program
Files\Java\jdk-13.0.2\bin\bin\java ENOENT
[12:02:02] E/launcher - Error: Error: Timed out waiting for the WebDriver server at
http://192.168.1.241:51064/wd/hub
at onError (C:\Users\david\AppData\Roaming\npm\node_modules\selenium-
webdriver\http\util.js:102:16)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[12:02:02] E/launcher - Process exited with error code 100
I've never seen the machine's IP shown before...normally it's http://localhost:4444/wd/hub....port 4444 is what's showing when Webdriver-manager starts up.
So apart from the OS nothing has changed...any ideas please?
Further to #yong's comments below...the server IS starting but the error message appears to indicate that protractor cannot connect to it.
Here's the Webdriver manager's startup log..
PS E:\Projects\DBM_TAGS> webdriver-manager start
webdriver-manager: using local installed version 12.1.7
[14:35:39] I/start - java -
Dwebdriver.gecko.driver=E:\Projects\DBM_TAGS\node_modules\webdriver-
manager\selenium\geckodriver-v0.26.0.exe -
Dwebdriver.chrome.driver=E:\Projects\DBM_TAGS\node_modules\webdriver-
manager\selenium\chromedriver_80.0.3987.16.exe -jar
E:\Projects\DBM_TAGS\node_modules\webdriver-manager\selenium\selenium-server-
standalone-3.141.59.jar -port 4444
[14:35:39] I/start - seleniumProcess.pid: 10956
14:35:42.662 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
14:35:43.030 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a
standalone Selenium Server on port 4444
2020-02-09 14:35:43.460:INFO::main: Logging initialized #3439ms to
org.seleniumhq.jetty9.util.log.StdErrLog
14:35:44.358 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
14:35:45.306 INFO [SeleniumServer.boot] - Selenium Server is up and running on
port 4444
So surely listening is happening on port 4444 and not Port 51064 as per the error. NB: everytime you try to run the tests, a different port number is reported.
http://192.168.1.241:51064/wd/hub is the webdriver start an api server on. If you use chrome, chromedriver.exe will start and expose a url like it. The api server accept commands from test script, like click, input. Then convert these commands to directives which chromedriver.exe understand how to manipulate browser.
you can run the chromedriver.exe directly from cmd window to see it can start or not.

"which adb" command shows the path of adb but "adb devices" says no such file or directory

I'm practicing REACT NATIVE on UBUNTU 18.x OS, everything was running smooth, yesterday i updated my React native,react & android gradle versions then i recived some error like server adb & client adb doesn't match, i fixed this issue using some commands now once the new project run fine, but as soon as i rebooted my system & run the project,it thrown the error
then i checked adb
+adb
output:bash: /usr/bin/adb: No such file or directory
+which adb
output:/usr/bin/adb
+type adb
output:adb is hashed (/usr/bin/adb)
+adb devices
output:bash: /usr/bin/adb: No such file or directory
please help me to resolve this error!
To my knowledge it can be resolved by increasing the num of max users in sysctl.conf
on UBUNTU you can run
sudo nano /etc/sysctl.conf
then press ctrl+O
then press ENTRE
then take the cursor on the end of file and place this line there
fs.inotify.max_user_watches=100000
or simply run this command
sudo sysctl -w fs.inotify.max_user_watches=100000
you can also follow this
no-command-adb-found-error-on-ubuntu

Deploy NodeJS application to Heroku crashes with Permission denied error

My postinstall script compile TypeScript to dist. It works as expected after deploy I can see compiled files inside it. But after deploy (web: dist/main.js) I have this in logs:
Starting process with command `dist/main.js`
Process exited with status 126
State changed from starting to crashed
bash: dist/main.js: Permission denied
Why Buildpack des not have access rights?
You're trying to execute the command dist/main.js instead of trying to run it with node.
Use this instead:
node dist/main.js

Apache Cordova App

I did an app for Android using Apache Cordova I came to the end that the program worked fine, but when I put the program on the tablet does not work, would you tell me why? The function of this app is the link to an altervista database
The error message is:
06-21 09:01:36.531 6705 6720 W System.err: stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.excel/files/aria/offlinest‌​oragelow.db

Categories

Resources