zendstudio run phpunit with selenium - selenium

Zend Studio 10.6.1 on Windows 8.1:
How to run PHPUnit Selenium inside Zend Studio (Version 10.6.1)?
Zend Studio 10.6.1 has a built-in version of PHPUnit 3.7, but no phpunit-selenium package installed.
I tried installing phpunit-selenium in my PHP project, without success.
installed as a phar archive (phpunit.phar downloaded from phpunit website).
installed with composer in my PHP project (require: phpunit-selenium >= 1.3.3).
unpacked the phar archive and including it in my project.
installed a complete current PHPUnit package (Version 4.1) in my project.
The effects were that either the PHPUnit Selenium classes could not be found, or that the tests would not run, or that PHPUnit didn't run at all anymore from within Zend Studio.
I'll answer this question by describing how I worked around it to get it to work finally.

A clean solution would be to edit composer.json in the built-in PHPUnit of Zend Studio.
The path to the built-in PHPUnit of Zend Studio under Windows is:
c:\Program Files (x86)\Zend\Zend Studio 10.6.1\plugins\com.zend.php.phpunit_10.6.1.v20140329-2132\resources\vendor\phpunit\phpunit
and / or:
c:\Program Files (x86)\Zend\Zend Studio 10.6.1\plugins\com.zend.php.phpunit_10.6.1.v20140329-2132\resources\vendor\phpunit\phpunit.org
There seem to be two identical versions.
However, after some dabbling around with composer, I couldn't manage to resolve the error messages, and gave up on it. I hope this can be solved in the future because it would be the cleaner solution.
Here is a successful Workaround:
install phpunit-selenium via composer in project;
copy the files over to the built-in PHPUnit of Zend Studio;
edit the file vendor\composer\autoload_classmap.php under the project directory:
find the lines that start with 'PHPUnit_Extensions_Selenium' and copy them to clipboard;
edit the file c:\Program Files (x86)\Zend\Zend Studio 10.6.1\plugins\com.zend.php.phpunit_10.6.1.v20140329-2132\resources\vendor\composer\autoload_classmap.php:
paste in the copied lines that start with 'PHPUnit_Extensions_Selenium';
remove phpunit-selenium from composer in project and from project;

Related

Cannot build Python.NET Python.Runtime in Visual Studio from master, or via setup.py

I tried to "Build Solution" from Visual Studio 2019, since the Python.NET project comes with a .sln VS Solution file
However, it skipped the Python.Runtime build which is what I'm interested in:
1>------ Skipped Build: Project: Python.Runtime ------
Furthermore, the other 4 builds had an error:
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\NuGet\16.0\Microsoft.NuGet.targets(186,5): error : Your project file doesn't list 'win-x64' as a "RuntimeIdentifier". You should add 'win-x64' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore.
Alternatively, when running python setup.py following instructions on https://github.com/pythonnet/pythonnet/wiki/Installation#github-installation-from-master-branch, I ran into another error from not being able to find Windows Kits installed roots. Have been looking around for answers and tried different versions of Python, .NET Core, .NET etc. to no avail. I detailed it in https://github.com/pythonnet/pythonnet/issues/1272
Environment
Pythonnet version: 3.0 (ongoing, latest master branch ending at c81c3c3)
Python version: 3.7.9
Operating System: Windows 10, 64bit, WinPE
I just loaded pythonnet.15.sln instead of pythonnet.sln and was able to build the DLL file.
Although I'm still not sure why pythonnet.sln didn't work for me, does "15" refer to the VS version? The regular sln was being used in this screenshot from a talk https://youtu.be/P7Or7XzeIno?t=1163

All my JetBrains can't launch with IDEA.exe (no response when clicking), but it could launch through idea.pat

I click IDEA.64 and there is no response. However, when I click idea.pat, it could launch. I am very confused. I tried to uninstall and install again, but it doesn't work. Also, my Clion has the same issue.
The answer from JB's community by Konstantin Annikov :
'Please install https://aka.ms/vs/16/release/vc_redist.x64.exe. The root cause is that vcruntime140.dll from Visual C++ Redistributable package failed to load. It is one of jbr\bin\awt.dll dependencies. Visual Studio makes changes to C++ tools sometimes and we are working on including this dll into IDE installation, or exclude its functionality.C++ tools are needed to run IntelliJ IDEA'

SpecFlow feature tests are not added to the Visual Studio 2019 Test Explorer window

I installed from Nugget Package Specflow, Specflow.NUnit, Nunit and Nunit3TestAdapter, and I already intalled too the extension for Visual Studio for Specflow a NUnitTestAdapter, but I can't see the test in TestExplorer window, any idea?
You need to:
Install the SpecFlow.Tools.MsBuild.Generation NuGet package: https://www.nuget.org/packages/SpecFlow.Tools.MsBuild.Generation/
Install the SpecFlow extension for Visual Studio: https://marketplace.visualstudio.com/items?itemName=TechTalkSpecFlowTeam.SpecFlowForVisualStudio
Make sure Tools > SpecFlow > Legacy > Use SpecFlowSingleFileGenerator Custom Tool is False
Right click on each feature file and make sure Custom Tool is blank. It used to be SpecFlowSingleFileGenerator in SpecFlow 2.x.
More info: Generating code behind files using MS Build.
I tried installing the Nugget package SpecFlow.Tools.MsBuild.Generation with the same version than specflow and now I can see the test in TestExplorer, other ways not works for me.

IDE to run Protractor .ts files

I want to know what is the good IDE for running protractor files (.ts) files? I was using webstrom and it worked very well for me. Since my client wants to use visual studio with typescript, i have moved to that but could not able to run .ts files.
I have followed below steps:
installed tnode js tools for vs 2013
install typescript 1.7 for vs 2013
create a new solution ->typescript -> html application with typescript
installed jasmine definetely typed,angular-protractor defintely typed,selenium-webdriver.d.ts,node.d.ts
added the reference path and import to conf file
When i build and run, no build errors but it goes to localhost and not the url which i have specified in config file.how to resolve this? is it good idea to use visual studio or not?

Qt application is not installed on other system, except the system where build was made

I have made an application using Qt 5.0.2 and made its build using inno setup. The application is successfully installed and launched at my system and worked fine.But when i installed it on other system, application is not installing or launching also no error showing. Please help me guys... What to do
If you are using visual studio to build your application you will probably need to install vcredist_sp1_x86.exe on the destination machine. You can find it somewhere in the installation folder of Qt. You can add it to the list of files in the Inno script, and add entry in the [Run] section. Also make sure you have included in your setup script:
Qt5Core.dll
Qt5Gui.dll
Qt5Widgets.dll
libGLESv2.dll
icuuc49.dll
icuin49.dll
icudt49.dll
D3DCompiler_43.dll
plugins/platforms/qwindows.dll ->should be installed in platforms/qwindows.dll in the destination folder. The same applies to imageformats plugins if you use them.
If you think there are too much dlls you will need to rebuild Qt with other configuration options, but that's another story...