how to select the branch using teamcity API - api

I am trying to run a teamcity pipeline through the api, but I do not know how to send in the body the stream I want to sync to, should it be sent inside properties or inside changes tag, if so what would the exact syntax would be like? I have gone through the documentation and I have not been able to find how to do this. This is the screenshot of how I do it through the GUI

Related

How To Pass Data Between Shopify "THEME-APP-EXTENSION" And The Backend Of The App?

I am trying to figure out how to pass data between the theme-app-extension and the backend of the application that the theme-app-extension is connected to. The theme-app-extension is all liquid, css, and javascript so I wasn't sure if there was a built in way to pass data between the two. For example is there a suggested method to pull data into the theme-app-extension from the database and is there a suggested way to send data to the database from the code running the theme-app-extension? I am fairly new to doing anything with theme-app-extensions as well as building Shopify applications. I have built Shopify applications that was admin facing or just cosmetic, this is my first time building a Shopify application that takes user input and sends it to the database and retrieves that data for the end-user to see.
Any suggestions would be greatly appreciated.
Thank You.
I started working on Shopify App (Theme App Extension) a week ago
I run into the same problem, so I did consume API in a javascript file using Fetch
Here is an example of the code:
I add this into global.js file inside assets
And then I linked the script files inside my Liquid block
Also inside global.js, I did manipulate DOM by injecting data consumed from API, here is an example
Finally what I did is communicate directly with DOM to inject or retrieve data, then handle it using javascript
I hope this helps you
Ps:
This is my first experience with Shopify too, and I was quite disappointed (lack of resources, docs, and community)
You usually (always) pass data from the front-end to the back-end using an App Proxy. There really is no other way at this time. The Proxy gives you an XHR call you can use, and you can return Liquid or JSON. Your choice.

What does it mean that a website supports xAPI?

I have a normal website where user can login and logout, I want to be able to launch xAPI content from this website supposing that the xAPI courses are stored on some cloud service and created by an authoring tool that supports xAPI like storyline.
I've read that launching should work basically by providing the right launch URL which is made of the link to the course besides endpoint from the LRS and some other informations like activity_id.
since launching works only by providing this url, what is the purpose of making the platform supports xAPI and what does that mean to the platform? is it the connection between the platform and the LRS? and how can I achieve that?
another thing I would like to know, who is usually responsible for making the send statement functions that send statements to the LRS, the instructional designer during creating the content or the web developper? because I was reading here in tincan php library and seems like he is making those statements inside the app code.

Application History is not getting generated in formsflow.ai

I am using Opensource formsflow.ai version v4.0.2. This is the Repo Link. I could get the Repo up and Running using docker deployment as instructed.
I had created a form and BPMN workflow for a specific use-case in formsflow.ai. The BPMN workflow is similar to the examples provided in the formsflow.ai opensource. This workflow consists of 4 statuses eg: New, Approved, Rejected, and Completed as shown Below. But when I am submitting the application from the client the application history is not getting created.
I am not sure what went wrong here, can anyone please help me with a solution. Could see the sample workflows they provided created history but not my custom Workflow.
You should use Application Audit Listener as mentioned in the document here.
org.camunda.bpm.extension.hooks.listeners.ApplicationAuditListener
This component can be used on any event of task or execution. Upon configuration, this send value from cam variables: "applicationStatus" and "formUrl" to formsflow.ai system for capturing audit.

Selenium and Postman integration or other approach?

I am looking for general idea, approach and subsequently a right tool.
I plan to start testing administration panel. Stable parts of it can be tested by mean of selenium-python scripts. But the challange starts when before testing some funcionalities in panel I need to sent a batch of data via Postman to API endpoint.
As you know Postman is a native app, so it doesn't offer a url which selenium driver could access (browser extension is deprecated.
So the question is. Would it be possible to integrate and automate the process in one selenium script?
Is it possible to do it with Postman or there is another tool that can send a request to endpoint and can be integrated with selenium script?
One more thing. The best approach would be: Sending request and few second after that action start selenium test on data which have been delivered via request to panel. I need to fully automate the process and set those actions with no sighnificant time delay.
Curious about possible solutions.
For API Automation purpose, Use Rest Assured. Its easy to learn, implement. You'll be able to fully automate apis(both JSON & XML). All the validation will be done in seconds. If you integrate RestAssured & Selenium, you'll be able to validate data with API & front end.
Please let me know if you need to know more on this.
Sample GET Code :-
RestAssured.baseURI="base url Eg :- https://www.google.com/";given().header("Accept","application/json").header("Authorization","Value").when().get("rest of the part of the url").then().assertThat().statusCode(200).and().contentType(ContentType.JSON).and().body("name[0]",equalTo("Location"));
Sample POST Code :-
RestAssured.baseURI="https://www.google.com/";
Response res=given().header("Authorization","Value").header("cache-control","no-cache").header("content-type","application/json").body("{"+"\"format\":[\"live-blog\",\"video-story\",\"Photo Gallery\",\"photo-gallery\",\"blank\",\"breaking-news\",\"photo-story\"],"+"\"language\": \"english\""+"}").when().post("Rest of the url`enter code here`").
then().assertThat().statusCode(200).and().contentType(ContentType.JSON).extract().response();
String res_string= res.asString();
System.out.println(res_string);
JsonPath jpath = new JsonPath(res_string);
String articleid = jpath.get("[0].articleId");
System.out.println(articleid);
You can find all the jar files online.
Apologies for the format.
Selenium purpose is not testing your app's APIs, but web. I would suggest as someone commented here, use Java with Rest-Assured, it's very reliable, easy to learn, and fast.
You can use Java's API call if you need anything specific for your web testing, as a requirement or something else.
Since you are using Python already, you could easily use the 'requests' python package to send your API requests and parse the responses as required. This would allow you to easily integrate this into your overall script, sending the api requests, ensuring the necessary response, then starting the selenium steps.

Using URL Link To Send Params To VB.NET App

What I am looking for is using a URL link such as "MyApp://param=value" or "MyApp://mysite.com/?params=value" to open my application and read the params using GET. I do not want to use the click once method to do this, because I want the application to load up without the starting up bar at the topleft. I know it could be done but I could not find anywhere to do it at. You can see an example used over at curse.com where they use a link like "curse://curse.com/?etc=etc" to launch their app and download the item. Another example is with Ventrilo where you can use "ventrillo://etc" links to start vent and connect to a server. The reason I want this is because I plan to use it to give my customers a way to give their clients a way to connect to their servers with my software using a simple URL.
Since the question is about VB.NET, I’m assuming you are targeting Windows.
In that case, this can be done by registering a custom URL handler via the Windows registry.
Other operating systems have different ways of achieving this.