Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working #17

Closed
helloCx opened this issue Oct 11, 2019 · 4 comments
Closed

Example not working #17

helloCx opened this issue Oct 11, 2019 · 4 comments

Comments

@helloCx
Copy link

helloCx commented Oct 11, 2019

yarn install success
image

yarn run appium success
image

yarn run jest fail
image

@licanhua
Copy link
Collaborator

It's possible that you are working on Windows Server, and Calculator is not pre-installed.
You may go to Microsoft Store and search 'Windows Calculator', then install it.

Another option is following the pipeline setup, and
download Calculator from https://github.com/react-native-windows/CalculatorPackage/releases
then replace Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" with "Microsoft.WindowsCalculator.Dev_8wekyb3d8bbwe!App" in example\setup.ts.

@licanhua
Copy link
Collaborator

You can check the installation by PowerShell. PackageFamilyName is the string you are looking for, then $(PackageFamilyName)!App is the appid

PS C:\Users\canli> Get-AppxPackage *Calculator*


Name              : Microsoft.WindowsCalculator.Dev
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        :
Version           : 0.0.0.0
PackageFullName   : Microsoft.WindowsCalculator.Dev_0.0.0.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.WindowsCalculator.Dev_0.0.0.0_x64__8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : Microsoft.WindowsCalculator.Dev_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
Dependencies      : {Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe,
                    Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe,
                    Microsoft.WindowsCalculator.Dev_0.0.0.0_neutral_split.language-zh-hans_8wekyb3d8bbwe,
                    Microsoft.WindowsCalculator.Dev_0.0.0.0_neutral_split.scale-100_8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind     : Developer
Status            : Ok

Name              : Microsoft.WindowsCalculator
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        :
Version           : 10.1908.0.0
PackageFullName   : Microsoft.WindowsCalculator_10.1908.0.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1908.0.0_x64__8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : Microsoft.WindowsCalculator_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
Dependencies      : {Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe,
                    Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe,
                    Microsoft.WindowsCalculator_10.1908.0.0_neutral_split.language-zh-hans_8wekyb3d8bbwe,
                    Microsoft.WindowsCalculator_10.1908.0.0_neutral_split.scale-100_8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

@helloCx
Copy link
Author

helloCx commented Oct 14, 2019

Thank you. I'm ready to run the test code ,{App:"this can use The file path"}。

@helloCx
Copy link
Author

helloCx commented Oct 14, 2019

Wow, I found it at the end of the article!!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants