How to compare second page getting correct data from first page or not(Functional testing) in Telerik test studio - telerik-test-studio

Am testing siliverlight web application.
In my application i have to verify total,price in invoice page with price and total in journal history page.
whether journal history getting correct data from invoice or not i have to test.
Invoice in one page and journal history in other page.how to verify the data.
I have attached invoice image and journal history image please look at that.assist some body how to do that functional test.Please give reply as soon as possible.

The attachments you referenced do not display with your question, however, I believe the following is what you want to do.
1) With recorder navigate to invoice page
2) Enable hover over elements
3) Hover over your element containing the value 'price', click on the blue dot, click on 'Quick Tasks' then select 'Extract - text contains...'
4) Repeat for element containing value for 'total'
5) Databind each variable with a unique name on the test steps page
6) Navigate to your journal History page
7) Hover over the element that contains the value for total, click the blue dot, select 'Build Verification', click content, then click ok
8) Repeat for element containing value for 'total'
9) Go back to test steps click on the verification steps and apply the binding from steps 3 and 4.

Related

MS Access - Pass-through value from two Forms

Background:
I have three forms for generating a new request, and here's why:
Form 1: frmRequests - Create New Request (Data is tblRequests)
Everything works here, fine - the buttons are:
Button 1 - Save and Exit - Adds the new request to the tblRequests table with status of 'Pending'
Button 2 - Save and Finish Later - Does the same as above with status of 'Incomplete'
Form 2: frmIncRequest - Edit Existing Request (Data is qryIncReq - which filters only on Status = "Incomplete") so they can continue the request. I have other code that opens the form to a select project number from a combo box on the Main Menu.
Form 2 is basically a copy of Form 1, but the Data Source is different.
Form 2 is opened based on a selection from a combo box using the qryIncReq query
Each of those forms has an option for Multiple Requests if there are other work orders related to one project. A selection button opens the Multiple Requests form.
The Project Number field has to match the Project Number on Form 1 or Form 2 depending on which one is open at the time.
From 3: Multiple Requests:
On the Project Number field I have the following:
Property Sheet > Data tab > Default Value = [Forms]![frmRequests]![txtProjectNumber] and it works wonderfully, and if I change it to the frmIncRequest too.
My question is:
Is there a way to change this to look at the form depending on which one is open? or
Do I have to create another Multiple Requests form to finish the Incomplete Requests?
Any ideas?
Thanks in advance!

How to create "Go To Next" record button in Access Form that references an alternate form

In my Access dB, I have a Form ("frmSearch") with a Subform ("subFrmData") that references a query ("qryDynamicData").
The Main Form has 6 drop downs that filter the data table in the Subform. The combo boxes are cascading so that once you select one, the entries that appear in the remaining combo boxes are only those entries in the query that correlate to the first selection. The goal is to keep making the data in the Subform data table shorter and shorter. Here are the fields in the combo boxes:
Region
Account Executive
Manager
Engineer
Stage
Project Number ("ProjectSLCT")
When the user filters down to where the list of projects they are looking at is small enough, they use the final combo box ("Project Number") to select an entry from the table. Doing this brings up another form ("MPC_ProjectNotes") as a pop-up form where they can keep track of project specifics. The event looks like this:
DoCmd.OpenForm "MPC_ProjectNotes", , , "Project_Number= '" & Me.ProjectSLCT.Value & "'"
I want to create a Next Record button on the "MPC_ProjectNotes" form that would in effect allow them to run through the steps of selecting the next item in the ProjectSLCT dropdown and thereby relaunching the MPC_ProjectNotes form with the next item from the combo box (and from the datasheet in "subFrmData") without having to close the MPC_ProjectNotes form and adjust the combo box.
Any thoughts? I don't really even know what to google to get myself pointed in the right direction on this. It seems "Next Buttons" aren't generally setup to work across forms.
Ok, here is what I would suggest:
In place of launching form MPC_ProjectNotes to ONE reocrd?
Why not launch the form with the SAME criteria and list as your combo box ProjectSLCT.
Now, we would of course land in the first reocrd of ProjectSLCT. but that's probably ok!
Now say if ProjectSLCT was NOT on the first record? Then we would simple have to add one extra step: move the form to the right record.
So, the logic is this:
Launch the 2nd form to the same "list" as the combo box.
Move the 2nd form to the SAME item currently selected in the combo box.
Now, you don't even have to write a next/previous button, but can simple display the built in navigation buttons. Since the form is LIMITED to the same list, then regular navigation in that form will work and work without you having to write any code!
So someplace in your first form, you EVENTUALLY wind up with this:
combobox data source = select * from tblWhoKnows where (CRITERA GOES HERE!!!).
So, now we simple launch the 2nd form with this:
DoCmd.OpenForm "MPC_ProjectNotes", , , (CRITERA GOES HERE!!!)
Now the form is loaded with the SAME list. We just this extra line of code to move/jump the form to the current selected row in the combo.
forms("MPC_ProjectNotes").RecordSet.FindFirst "Project_Number= '" & Me.ProjectSLCT.Value & "'"
So we open the form to the "list", and then jump to the corrent combo box selected. The result is a form that you can navagate teh combo list, but we jump/started out on the same combox selected item from that list in the form.
So the code will look something like this:
DoCmd.OpenForm "MPC_ProjectNotes", , , (CRITERA GOES HERE!!!)
Forms("MPC_ProjectNotes").RecordSet.FindFirst "Project_Number= '" & Me.ProjectSLCT.Value & "'"
You will of course "change" the above "CRITERA" to the SAME criteria you used in your code to fill out the last combo box.

Requery subform (1) after adding a new subform (1) record via pop-up subform (2) - Access 2007

I have a form with two subforms (1 and 2). Subform 1 stores the data continously for account breakdowns. Using a pop-up subform (subform 2), the user enters data to change or update the account breakdown stored on subform 1. On submit, the information is stored in the sub-table linked to subform 1, but the data does not refresh and add the new information in a new record in subform 1 unless I manually click the refresh all button in the home tab.
So far, I have tried the following code on form_afterupdate of subform 2, which does requery subform 1 automatically but creates a run-time error (2450) when the main form is closed:
Private Sub Form_AfterUpdate()
On Error GoTo Err_Form_AfterUpdate
Forms!frmSpendPlan!frmSpendPlanSub.Form.Requery
Exit_Form_AfterUpdate:
Exit Sub
Err_Form_AfterUpdate:
MsgBox Err.Description
Resume Exit_Form_AfterUpdate
End Sub
If anyone has a way to automatically requery subform 1 data once subform 2 is submitted without creating an error please let me know, I appreciate any help you can provide.
Thanks!
I have the same problem as you sometimes! The form doesn't refresh properly.
Method 1
try this line of code instead of the current requery code. It shouldn't give you an error but may still not work due to bugs...
Form_frmSpendPlanSub.Requery
I use this format to reference across forms and it works well usually.
Method 2
1) What you can try is in design view click on the form that is doing the "After_Update"
2) Right-Click on the form and click "BUILD EVENT.." and select "Expression Builder"
In expression builder you can see exactly how the form you are in links to the form you want to get to and what you want to do...
So you would navigate yourself by going to FORMS--> Loaded Forms--> frmSpendPlanSub and then from the list you can double click on " "
This will get you referenced to the form you want to affect.
Then all you have to do is copy the code that it gives you in the box above into your VBA code and then reference what you want to do...
E.g.
Forms![frmMainForm]![frmSecondForm].Form![frmThirdForm].Form.Requery
Anyway hope that helps...

ActiveReports 7 TextBox/List Page Break

I'm new to ActiveReports 7, I have a rdlx Report using a stored procedure to populate multiple lists with TextBoxes. The data is appearing correctly, however I am unable to get the TextBoxes to break when their contained data exceeds the length of the page. Instead, the TextBox remains unbroken and starts on the next page leaving a large empty gap. I have the containing Lists' 'KeepTogether' property set to 'False' and it doesn't help. How can I make these Lists and/or TextBoxes break at the end of the page and resume on the next?
Check the type of report you have. There are the "ActiveReports 7 Page Report", aka FPL (Fixed Page Layout) report and the "CPL Report" (Continuous Page Layout).
Fixed Page Layout is for creating a new page for each record. Suitable for invoices and similar reports. You need a "CPL report" so that it only adds pageas as needed for the content.
To get a CPL Report take the following steps from inside the designer in Visual Studio:
Project > Add New Item
Choose the "ActiveReports 7 Page Report" item here.
Choose Report > Convert to CPL Report.
Those steps should effectively have the effect of changing "Page" to "Body".
Below are the steps I used to create a CPL report that has a list with a textbox containing very long text (longer than a page) and it renders across pages okay:
Add a list
Add a textbox to the list. The default properties should work fine, but the relevant properties on my textbox are:
TextBox.CanGrow=True
TextBox.WrapMode=WordWrap
List.KeepTogether=False: Although technically this should be fine either way if the textbox/list are larger than a page. KeepTogether=False will just prevent it from moving to a new page if it is starting half way down the page.
Let me know if you still don't crack it and I'll upload my test report here somewhere for you.

Insert page breaks between report groups with two-sided printing

In group expert options I have set Keep Group Together, which makes sure a new page is set.
With two-sided printing enabled, how can I make sure that a new group always forms on a new sheet of paper? Can this be done in the formula expert? Is there some way of checking if the page I'm on is even or odd and insert a page from there? Just asking leading questions because I'm not familiar with what is possible with Crystal's formula editor. BTW, This is Crystal XI Enterprise Server.
You can do this with the onfirstrecord, pagenumber and the onlastrecord keywords.
On the group header section "New page before" formula...
not onfirstrecord //so every group (except the first) starts on a new page
On "New page after" formula...
//to keep the group from starting on even page but make sure the last page is not blank
remainder(pagenumber, 2) = 1 and not onlastrecord
Open the Section Expert screen. Select Report Header and check "Suppress (No Drill-Down)". Then select in the group header select the group you want to page break and check "New Page Before".
This Works fine if I need Page Break on one Group. How do I do if Page Break on Multiple Groups?
I found answer..
Using Next(Field) or Previous(Field), I added below condition and worked fine.
In Next Page Before formula:
Not onFirstRecord and ({table.field} <> previous({table.field}))
hi IronicMuffin i understand you question. the answer is versy simple but more effetcive.
step 1: Include dataset or database expert into your crystal report
Step2: In the outside surface of the report area right click and goto report and goto group expert
Step3: add the which field you include the group that time the bottom of the window options will appear
Step 4: click the option and agian goto 2nd tab of the option.
step 5: finally check(check=true) check box of Repeat Group header on each page other check box or put uncheck