Hello Raghav, Many thanks for sharing the tutorial of TestCafe. Much needed indeed. Many companies are using TestCafe framework but very little resources available of it on UA-cam. Please continue this series. Thanks for your tremendous support & sharing for fellow testers...🙏
Hi @Raghav sir i hope you are doing well. Sir i have a question... how will i use css or xpath selectors in this? Inshort how to type xpath or css selector like we use for class (.) and id (#) selectors
Anil It is not mandatory to use a specific framework with Playwright for JavaScript automation testing. Playwright is a powerful and flexible tool that can be used to automate web applications without the need for a framework. However, using a framework can provide a number of benefits, such as: * **Code reuse:** Frameworks can help you to reuse code, which can save you time and effort. * **Test case organization:** Frameworks can help you to organize your test cases in a logical way. * **Reporting:** Frameworks can generate reports that can help you to analyze the results of your tests. There are a number of different frameworks available for Playwright, such as TestCafe, Cypress, and Playwright Test. The framework that you choose will depend on your specific needs and preferences.
please note, modern npm does not run while passing only " testcafe chrome .\tests\test1.js " please use prefix "npx" e.g. npx testcafe chrome .\tests\test1.js hope this will help someone who might be failed at first time and worried how to execute the test
hello sir Geeting below error while run the testcafe Error: Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption 'powershell' is not recognized as an internal or external command, operable program or batch file. at makeError (C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test ode_modules\windows-release ode_modules\execa\lib\error.js:60:11) at Function.module.exports.sync (C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test ode_modules\windows-release ode_modules\execa\index.js:194:17) at windowsRelease (file:///C:/Users/abhij/OneDrive/Documents/Abhi/testcafe/test/node_modules/windows-release/index.js:42:19) at C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test ode_modules\get-os-info\lib\utils\get-windows-info.js:15:28 at Generator.next () at fulfilled (C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test ode_modules\get-os-info\lib\utils\get-windows-info.js:5:58) also it shows localhost refused to connect.
Abhijeet It seems you're encountering two issues while running TestCafe: 1. 'powershell' Not Recognized: - The error message indicates that the 'powershell' command is not recognized. - To resolve this, you can try the following: - Add the PowerShell executable path to your system's PATH environment variable. - Alternatively, adjust your script to explicitly use the full path to PowerShell: ``` %SYSTEMROOT%System32WindowsPowerShellv1.0powershell.exe -Command "your command" ``` - Make sure PowerShell is installed and accessible. 2. Localhost Refused to Connect: - The "localhost refused to connect" error suggests that the application you're testing is not running or not accessible. - Ensure that your application server (e.g., a web server or API) is up and running. - Check the URL you're trying to connect to (e.g., `localhost:8080`) and verify that it's correct. Remember to address both issues to successfully run your TestCafe tests -
Hello Raghav,
Many thanks for sharing the tutorial of TestCafe.
Much needed indeed. Many companies are using TestCafe framework but very little resources available of it on UA-cam.
Please continue this series.
Thanks for your tremendous support & sharing for fellow testers...🙏
You are most welcome
Hello Raghav, your video is more knowledgeable and very helpful Thank you so much
Glad to hear that Nitin
Very useful video. Thanks a lot. Could you upload more videos on TestCafe
Yes, sure Shobana, 2nd video is up now
Excellent video sir ji
So nice of you Sam
Thankyou So so much for this tutorial..I want to learn this tool and you are truuly helping us.
Glad it was helpful
You are just amazing
Thanks Vinay,
Hi Raghav, any videos related to Sentry monitoring tool?? We will use this in future to do performance testing, any help or suggestions??
Not yet Santha, i will check and plan
@@RaghavPal please suggest if any references
I have not checked on this.. for now can check online
Great!
Thanks Alexander
Hi Raghav Can we learn this test framework i dnt have exp in node js etc, is it good to learn or what are the prerequisites for this tool?
Yes, definitely Kavita, there is no prior exp required, you can learn along with the lectures and if you face any issues, do let me know
Can use visual studio for editor
Yes
Hi @Raghav sir i hope you are doing well. Sir i have a question... how will i use css or xpath selectors in this? Inshort how to type xpath or css selector like we use for class (.) and id (#) selectors
I just got my answer in you testcafe 2 video.. thank you sir 😊
Wajeeha, some of this I have covered in the 2nd session which got published today. I will have more sessions on this
Oka sir, thank you
Do we really need to use specific framework in playwright with javascript automation testing? Is it mandatory?
Anil
It is not mandatory to use a specific framework with Playwright for JavaScript automation testing. Playwright is a powerful and flexible tool that can be used to automate web applications without the need for a framework.
However, using a framework can provide a number of benefits, such as:
* **Code reuse:** Frameworks can help you to reuse code, which can save you time and effort.
* **Test case organization:** Frameworks can help you to organize your test cases in a logical way.
* **Reporting:** Frameworks can generate reports that can help you to analyze the results of your tests.
There are a number of different frameworks available for Playwright, such as TestCafe, Cypress, and Playwright Test. The framework that you choose will depend on your specific needs and preferences.
Is this technology demanding? because I worked on this last year
Yes.. let me know your experience
पैस, लैस्ट 😂
Btw its a good spoon feed for me thanku
Most welcome
Hello sir , can you please provide a video with testcafe-blink-diff , I believe it is very helpful . Please
Sushobhan
I will plan for this
16:56 started coding man too much talking about unnecessary things
i hope that will help absolute beginners. will take more feedback and improve on this
please note, modern npm does not run while passing only " testcafe chrome .\tests\test1.js " please use prefix "npx" e.g. npx testcafe chrome .\tests\test1.js hope this will help someone who might be failed at first time and worried how to execute the test
Thanks for adding ..
hello sir
Geeting below error while run the testcafe
Error: Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
'powershell' is not recognized as an internal or external command,
operable program or batch file.
at makeError (C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test
ode_modules\windows-release
ode_modules\execa\lib\error.js:60:11)
at Function.module.exports.sync (C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test
ode_modules\windows-release
ode_modules\execa\index.js:194:17)
at windowsRelease (file:///C:/Users/abhij/OneDrive/Documents/Abhi/testcafe/test/node_modules/windows-release/index.js:42:19)
at C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test
ode_modules\get-os-info\lib\utils\get-windows-info.js:15:28
at Generator.next ()
at fulfilled (C:\Users\abhij\OneDrive\Documents\Abhi\testcafe\test
ode_modules\get-os-info\lib\utils\get-windows-info.js:5:58)
also it shows
localhost refused to connect.
Abhijeet
It seems you're encountering two issues while running TestCafe:
1. 'powershell' Not Recognized:
- The error message indicates that the 'powershell' command is not recognized.
- To resolve this, you can try the following:
- Add the PowerShell executable path to your system's PATH environment variable.
- Alternatively, adjust your script to explicitly use the full path to PowerShell:
```
%SYSTEMROOT%System32WindowsPowerShellv1.0powershell.exe -Command "your command"
```
- Make sure PowerShell is installed and accessible.
2. Localhost Refused to Connect:
- The "localhost refused to connect" error suggests that the application you're testing is not running or not accessible.
- Ensure that your application server (e.g., a web server or API) is up and running.
- Check the URL you're trying to connect to (e.g., `localhost:8080`) and verify that it's correct.
Remember to address both issues to successfully run your TestCafe tests
-
Thank u so much, Its worked👍