Azure Devops Custom Extension for Test Plans and its dialogue - azure

I had write an dummy extension that i want to work in test plan screen and its test steps screen. when a user check the Test steps i want to get the values of those checked test steps. If all steps are not being selected so it should return 'Pause' on close, not pass or fail.
I had write an extension of dialogue box (for warning that you had not selected this option)that i want to show on the click of Save & Close button if user had not selected a default value or hadn't clicked all steps. but i m unable to attach my extension to that dialogue screen.

Related

Robot- Selenium : How we can handle a element (text box) whose ID is changing dynamically

I am facing one simple problem-- there is one Add button in the web page, After clicking that a small pop up window (Not in another browser tab , without title) opened having 3 text box. These id/xpath is getting changed whenever will click on Add button. I need to to enter few data and then save.
Could you please help me how we can handle this dynamic xpath/id ---text box in robot selenium framework. Is there any way we can input on text box based on label. Please share any pointer or sample code.
Thank you very much for the help.

How can i upload/use my client script in suitescript NetSuite

Can somebody explain to my how can i use or upload my client script in suitescript creating a form in netsuite? Appreciate the help. Thank you.
Your question is not clear. You want to upload a client script that would create a form?
First, do you want to upload javascript/suitescript file? if yes then you should follow what Jo O posted earlier.
Second, you mean your client script will create form? I don't think it is possible because only suitelet can create a form.
Third, you mean to say that you want a client script attached to a form? If yes there are two ways to do it, First you can customize your form and put your client script on the Custom Code tab. Second is to create a client script record and do not deploy it to any record take note of the script ID and you can use the setScript method to set/attach the script on the nlobjForm object on before record load of user event script or on the suitelet.
This is from SuiteAnswers # 23388.
Assuming you're using the Eclipse IDE with the SuiteScript Add-in, first make sure that you have your NetSuite accounts setup in the IDE:
1.In SuiteCloud IDE, set your master password by going to NetSuite > Master Password > Set Master Password.
2.Add your NetSuite accounts by going to NetSuite > Accounts and clicking Add.
After you have the script file ready:
3.Next, right-click in the SuiteCloud IDE editor area and then go to NetSuite > Upload File in Editor. The Upload File in Editor window opens. Wait for the progress bar to complete. The Upload File in Editor window closes upon completion.
Verify Your Script Upload
4.Right-click in the editor area and then go to NetSuite > Log in to Project Account. A browser loads with your NetSuite account logged in.
5.In NetSuite, go to Documents > Files > File Cabinet. The File Cabinet Folders page of your NetSuite account loads.
6.Navigate to the SuiteScripts directory and check your file in the subdirectory that matches your project name.
You then need to create a custom form that will link in this code.
7.In NetSuite, go to Customization > Scripting > Scripts > New. The Select Type page loads.
8.In the Type list, click Suitelet. (assuming your code is a suitelet)
9.In the Name field, enter a valid name (example: GettingStarted_SS_HelloWorld).
10.In the ID field, enter a name that begins with an underscore (example: _gs_ss_helloworld).
11.In the Scripts subtab, select your *.js file in the Script File dropdown list.
12.In the Function field, enter the function name that you wrote. Use the exact case and do not use the parentheses.
13.Hover over the dropdown arrow on the Save button, and then click Save and Deploy. The New Script Deployment page loads.
14.In the Title field, enter the Name value from step 9.
15.In the ID field, enter the ID value from step 10.
16.In the Status dropdown list, select Testing.
17.Click the Links subtab.
18.In the Center dropdown list, select Classic Center (or whichever Center is appropriate).
19.In the Section dropdown list, select the menu where you want this to appear (example: Setup).
20.In the Category dropdown list, select the submenu on the menu where you want this to appear (example: Custom).
21.In the Label field, enter the exact item on the menu that you want the user to select (example: Getting Started).
22.Click Add.
23.Click Save.
Test Your Script
24.In NetSuite, go to the menu, submenu, and item specified in steps 19, 20, and 20 (example: Setup > Custom > Getting Started). The page you just created should load.
You should create a Suitelet with a form and then create url using N/url and open it using https or nlExtOpenWindow from client side.

How to get the text of the second button on WPF application

I am using CodedUI to automate on a WPF application, I have 2 buttons in a form, I want to verify the text of each button. But when running only have passed script. Because The actual result of the second script is always the actual of the first button. So how I get the second text to verify? Please help me.
(I saw they are the same AutomationID when I record)
Check the search properties and search configurations of the buttons in the uitest file. If the properties are ambiguous, codedui will find the same button each time. If you have access to the application source, try giving the buttons unique friendly names.

How to identify a button click in coded UI Customised code

In UIMAP.CS file in both the Recorded method and assertion method, I am not able to identify the button click.
Is there any way I can get hold of the button click event?
I am able to get hold the button in to a UITESTCONTROL variable but the options I was able to see are "exists", "enabled","name" etc...
I tried checking it with assertions too when I dragged the cross hair on to the clicked button , assertions are generated only for checking the existence,correctness of text and name but not the events occured on it..
Please help in this regard..
Please make sure that the Control/Object on which you want to use the Click operation is a button and not any Web Element or control which does not support the Click operation.
Once verified, you can do the following:
Record a New Session and while recording click on that button, stop your recording.
Open the UIMap.cs and navigate to that button control. The intellitrace would show you all the available options for that control.
Thanks
Nikhil

Issue after editing Search Properties in coded UI?

We are using coded ui test using visual studio 2010.We are testing .Net 4.0 windows application.
Here is an scenario.
We have an windows app which has a button named submit and we have recorded a workflow which clicks on submit.
Now when we generate code using coded ui the serach criteria for the button is based on its name (display name of button).
If tommorrow developer changes the button's text to submit1 , our scripts fail.
We tried using "controlName"[name given to the control and not the display name] property in search criteria instead of Name , but it does not work.
We get following error - "The playback failed to find the control with the given search properties"
Related problem happens to me also. I solved it by sending the Focus to the UI control before using that control.
Try this.
this.UIAssettePresentationsWindow2.UINOWindow.UINOButton.SetFocus();

Resources