Testing a Thunderbird addon with Mochitest - automated-tests

I wrote a Thunderbird addon and want to write automated Mochitest tests for it.
For this I have set up the local development environment for Thunderbird according to this guide.
What I would like to do in a test case:
Install the addon. If possible the addon archive xpi file.
Adjust the settings of the addon in the addon's options page.
Create a test email account with some messages.
Perform actions using the WebExtension API and verify the result.
Delete the storage of the extension after test.
I have difficulties with points 1, 2 and 5.
My main problem is point 1 right now. I've looked at tests in the Thunderbird project, but unfortunately I'm not able to figure out how to install the addon as an xpi file in a test.
I also don't know how to access the options page of the addon (in the addon manager).
I am thankful for any help.

Related

Workflow with already operational Wordpress page to incorporate Plesk + VSCode + Gitlab + Github

I am new to Git and want to use Github for version control on a website that I have already created but will still need to modify now and in the future. My institution uses Gitlab and I would like to make this repository available to them internally, but I also want to host the repository for our team's website privately on my Github. This is mainly to use Github copilot, have an easy integration with VSCode, and grow my proof of work on Github.
I would like to make an automated pipeline as follows:
VSCode/IDE ( only direct development environment) → auto push to Github (viewable: private) → sync to Gitlab (viewable: internal organization) → modify Plesk file manager (my host control panel, integrated if needed) → Wordpress (live changes auto-deployed due to the Plesk modification)
The idea is I would just push commits locally from my IDE/ VSCode and have auto-deployment on the website with Github and Gitlab functioning as intermediaries for version control and internal organizational access.
(For reference: Right now, I am using Plesk to modify the code on the site, but I have to copy and paste back and forth with VSCode because I perfer its feature rich environment and very low level "versioning" by just saving the file. It's an extremely inefficient system currently which does not tolerate errors well and it doesn't allow for organizational access. The site isn't yet live, it is still "Coming Soon" but I will need to retain all of the files currently on the site and be able to modify them before and after the site goes live from now on.)
Does anyone have experience setting up integrations/automations like the one outlined above? Do you have any tips or know of any guides/tutorials to creating such a workflow? I'm new too all of these technologies other than the IDE, so I don't want to mess anything up while setting it all up.
Thanks wonderful humans! :D
I've made accounts for all technologies listed above but haven't started the integration process on any of them because I can't find a consistent best place to start given that I already have a fully developed website. I don't know if I should copy Plesk into Git, which I should start with, etc. I really need a step by step. Thank you again!

Alfresco share repository section not working

I installed fresh Alfresco 7.1.1. Everything is working fine except the repository section is not working properly in the share. I am able to create the sites and user but when I go to repository or site document library it shows the following.
I sent a document to the repository and it got created successfully. Even I can access the document using the Admin Console Node browser and see all the folders like company_home.
There are no documents or icons to create a new content. I tried to drag and drop the document but that also did not work.
My tomcat is running on 8081 and I have replaced all the localhost:8080 ports in the share-config-custom.xml with localhost:8081.
It turned out that I did not installed the Alfresco-Share-Services.amp. However it was not showing any warnings in the logs about not having Alfresco-Share-Services.amp installed.
Than you everyone for their time.
This will also occur if you accidentally install the Alfresco-share-services.amp to the share.war. It needs to be installed to the alfresco.war file. The module will show as installed but it will not allow you see the repositories in the screen shot on this question. It took a little while for me to debug my miss-step in installation so trying to save others some time if they make the same mistake.

How to use python in Wordpress if needed

As the heading of the question; I just want to know whether it is possible to use python in Wordpress for a complete build of a web page. I have seen some answers but, they were not satisfactory and it is recommended to use python there?
As I understand, you want to know whether it is possible to use python in Wordpress for a complete build of a web page.
Yes, python should be installed onto your server. On most linux powered servers we have python by default.
However, shared hosting will allow you to run python inside wordpress. It is best to be on VPS then you can trigger python from wordpress using short codes.That will execute and display python script output on the page.
For further reading please follow the links below:
The trick is use the word press[source code] shortcut tag, as documented at
http://en.support.wordpress.com/code/posting-source-code/

Installing third-party Drupal modules on Azure

I've just started playing around with the new "Website" feature in Azure that allows you to create websites with just one step - and also allows you to create websites from a "Gallery", including Drupal. And I can get my Drupal site up and running, no problem. But if I try to add a third-party module (for instance, Mindtree's ODataDrupal), then I get this error message:
Installation failed! See the log below for more information.
odata_support
Error installing / updating
File Transfer failed, reason: Cannot chmod /DWASFiles/Sites/theparentsunion/VirtualDirectory0/site/wwwroot/sites/all/modules/odata_support.
More-or-less the same thing happens if I try to update some of the existing modules (which Drupal warns, with big red flashing letters, are out of date), except then my Drupal install is left crippled, with no way to fix it that I've been able to find.
Is this as-designed, or some limitation of the beta website integration? (Because a Drupal installation is kinda worthless if you can't add new modules to it, or update existing ones.) Or am I doing something wrong?
If you are trying to use plugins and 3rd party modules to Drupal based Windows Azure Websites, the results may vary person to person. This is mainly because the kind of configuration needed by specific module or plugin may or may not be supported by Windows Azure Websites model and not all kind of custom configuration will work on Windows Azure Websites and you would need to move to Windows Azure Virtual Machines.
About application specific structure, what you can do is open the websites FTP folder and whatever you could see there is user configurable, so you can configure it the way you want. However if you application will try to make changes to outside its limited scope, you will hit errors as above.
Here is a case study where Azure VM was used for Drupal based migration which shows that for complex application you may need to use AZure VM rather then Azure Websites.

How to execute an exe or a file in local machine using a website or html (like clone in windows in github)

These are my requirements
How to open an pdf file which is located in my local machine using html page?
How to execute an exe file which is loacted in my local machine using a website?
This is like what github does when we do clone in windows option.
I need to implement exact same operation . I have a button and when I click that it need to run an application.
Thanks in advance.
You installed GitHub for Windows on your computer. And this installation registered the protocol github-windows: with the GitHub for Windows executable as handler. Nothing special going on here.
The only chance I see is to register your own URL scheme (as you said myapp-pdf: or something like it).
Then you can redirect (or open a new window) to a URL with your custom scheme and the browser should start your application giving you the URL as a command line parameter.
Create custom Url Schema and Map to the application
I just explain some thing I got after your inputs.
As all guys mentioned above, I need to generate a url schema for my application
I need to register the schema and application path to be executed in Windows registry. This need to handle during the installation .
http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
This link will show how to add the particular schema in windows registry and we can specify the application to be executed like mailto: for Outlook.
Thanks for SO to provide the details from here.
how do I create my own URL protocol? (e.g. so://...)
Pros
Need to check about the security issues which may occur if we are using this approach.

Resources